SlideShare a Scribd company logo
OCP Java SE 8 Exam
Sample Questions	
Excep&ons	and	Asser&ons	
Hari	Kiran	&	S	G	Ganesh
Ques&on		
Consider	the	following	program:	
	
class	ChainedExcep/on	{	
				public	sta/c	void	foo()	{	
								try	{	
														throw	new	ArrayIndexOutOfBoundsExcep/on();	
								}	catch(ArrayIndexOutOfBoundsExcep/on	oob)	{	
													Run/meExcep/on	re	=	new	Run/meExcep/on(oob);	
													re.initCause(oob);	
													throw	re;	
							}	
				}				
				public	sta/c	void	main(String	[]args)	{	
							try	{	
											foo();	
							}	catch(Excep/on	re)	{	
											System.out.println(re.getClass());	
					}		}	}		
h@ps://ocpjava.wordpress.com	
When	executed	this	program	from	
main()	by	calling	foo()	method,	
prints	which	of	the	following?	
	
A.  class	
java.lang.Run/meExcep/on	
B.  class	
java.lang.IllegalStateExcep/on	
C.  class	java.lang.Excep/on	
D.  class	
java.lang.ArrayIndexOutOfBou
ndsExcep/on
Answer	
Consider	the	following	program:	
	
class	ChainedExcep/on	{	
				public	sta/c	void	foo()	{	
								try	{	
														throw	new	ArrayIndexOutOfBoundsExcep/on();	
								}	catch(ArrayIndexOutOfBoundsExcep/on	oob)	{	
													Run/meExcep/on	re	=	new	Run/meExcep/on(oob);	
													re.initCause(oob);	
													throw	re;	
							}	
				}				
				public	sta/c	void	main(String	[]args)	{	
							try	{	
											foo();	
							}	catch(Excep/on	re)	{	
											System.out.println(re.getClass());	
					}		}	}		
h@ps://ocpjava.wordpress.com	
When	executed	this	program	from	
main()	by	calling	foo()	method,	
prints	which	of	the	following?	
	
A.  class	
java.lang.Run/meExcep/on	
B.  class	
java.lang.IllegalStateExcep&on	
C.  class	java.lang.Excep/on	
D.  class	
java.lang.ArrayIndexOutOfBou
ndsExcep/on
Explana&on	
B.	class	java.lang.IllegalStateExcep/on	
	
In	the	expression	new	Run/meExcep/on(oob);,		the	
excep/on	object	oob	is	already	chained	to	the	
Run/meExcep/on	object.	The	method	initCause()	cannot	be	
called	on	an	excep/on	object	that	already	has	an	excep/on	
object	chained	during	the	constructor	call.		
	
Hence,	the	call	re.initCause(oob);	results	in	initCause()	
throwing	an	IllegalStateExcep/on	.	
h@ps://ocpjava.wordpress.com
Ques&on		
Consider	the	following	program:	
	
class	EHBehavior	{	
				public	sta/c	void	main(String	[]args)	{	
								try	{	
												int	i	=	10/0;	//	LINE	A	
											System.out.print("aXer	throw	->	");	
								}	catch(Arithme/cExcep/on	ae)	{	
												System.out.print("in	catch	->	");	
													return;	
								}	finally	{	
												System.out.print("in	finally	->	");	
								}	
								System.out.print("aXer	everything");	
				}	}	
	
Which	one	of	the	following	op/ons	best	describes	the	behaviour	of	this	program?	
	
A.	The	program	prints	the	following:	in	catch	->	in	finally	->	aXer	everything	
B.	The	program	prints	the	following:	aXer	throw	->	in	catch	->	in	finally	->	aXer	
everything	
C.	The	program	prints	the	following:	in	catch	->	aXer	everything	
D.	The	program	prints	the	following:	in	catch	->	in	finally	->	
h@ps://ocpjava.wordpress.com
Answer	
Consider	the	following	program:	
	
class	EHBehavior	{	
				public	sta/c	void	main(String	[]args)	{	
								try	{	
												int	i	=	10/0;	//	LINE	A	
											System.out.print("aXer	throw	->	");	
								}	catch(Arithme/cExcep/on	ae)	{	
												System.out.print("in	catch	->	");	
												return;	
								}	finally	{	
												System.out.print("in	finally	->	");	
								}	
								System.out.print("aXer	everything");	
				}	}	
	
Which	one	of	the	following	op/ons	best	describes	the	behaviour	of	this	program?	
	
A.	The	program	prints	the	following:	in	catch	->	in	finally	->	aXer	everything	
B.	The	program	prints	the	following:	aXer	throw	->	in	catch	->	in	finally	->	aXer	
everything	
C.	The	program	prints	the	following:	in	catch	->	aXer	everything	
D.	The	program	prints	the	following:	in	catch	->	in	finally	->	
h@ps://ocpjava.wordpress.com
Explana&on	
D	.	The	program	prints	the	following:	in	catch	->	in	finally	->	
	
The	statement	println("aXer	throw	->	");	will	never	be	
executed	since	the	line	marked	with	the	comment	LINE	A	
throws	an	excep/on.	The	catch	handles	Arithme/cExcep/on	,	
so	println("in	catch	->	");	will	be	executed.	
	
Following	that,	there	is	a	return	statement,	so	the	func/on	
returns.	But	before	the	func/on	returns,	the	finally	statement	
should	be	called,	hence	the	statement	println("in	finally	->	");	
will	get	executed.	So,	the	statement	println("aXer	
everything");	will	never	get	executed	
h@ps://ocpjava.wordpress.com
Ques&on		
Consider	the	following	program:	
	
import	java.u/l.Scanner;	
class	AutoCloseableTest	{	
				public	sta/c	void	main(String	[]args)	{	
								try	(Scanner	consoleScanner	=	new	Scanner(System.in))	{	
												consoleScanner.close();	//	CLOSE	
												consoleScanner.close();	
								}	
					}	
}	
	
Which	one	of	the	following	statements	is	correct?	
A.	This	program	terminates	normally	without	throwing	any	excep/ons	
B.	This	program	throws	an	IllegalStateExcep/on	
C.	This	program	throws	an	IOExcep/on	
D.	This	program	throws	an	AlreadyClosedExcep/on	
h@ps://ocpjava.wordpress.com
Answer	
Consider	the	following	program:	
	
import	java.u/l.Scanner;	
class	AutoCloseableTest	{	
				public	sta/c	void	main(String	[]args)	{	
								try	(Scanner	consoleScanner	=	new	Scanner(System.in))	{	
												consoleScanner.close();	//	CLOSE	
												consoleScanner.close();	
								}	
					}	
}	
	
Which	one	of	the	following	statements	is	correct?	
A.	This	program	terminates	normally	without	throwing	any	excep&ons	
B.	This	program	throws	an	IllegalStateExcep/on	
C.	This	program	throws	an	IOExcep/on	
D.	This	program	throws	an	AlreadyClosedExcep/on	
h@ps://ocpjava.wordpress.com
Explana&on	
A	.	This	program	terminates	normally	without	throwing	any	
excep/ons	
	
The	try-with-resources	statement	internally	expands	to	call	
the	close()	method	in	the	finally	block.	If	the	resource	is	
explicitly	closed	in	the	try	block,	then	calling	close()	
again	does	not	have	any	effect.	From	the	descrip/on	of	the	
close()	method	in	the	AutoCloseable	interface:	“Closes	this	
stream	and	releases	any	system	resources	associated	with	it.	
If	the	stream	is	already	closed,	then	invoking	this	method	has	
no	effect.”	
h@ps://ocpjava.wordpress.com
Ques&on		
Consider	the	following	program:	
	
class	Asser/onFailure	{	
				public	sta/c	void	main(String	[]args)	{	
								try	{	
													assert	false;	
								}	catch(Run/meExcep/on	re)	{	
													System.out.println("Run/meExcep/on");	
								}	catch(Excep/on	e)	{	
													System.out.println("Excep/on");	
								}	catch(Error	e)	{	//	LINE	A	
														System.out.println("Error"	+	e);	
									}	catch(Throwable	t)	{	
														System.out.println("Throwable");	
									}		
						}	
}	
h@ps://ocpjava.wordpress.com	
This	program	is	invoked	from	the	
command	line	as	follows:	
java	Asser)onFailure	
	
Choose	one	of	the	following	op/ons	
describes	the	behaviour	of	this	
program:	
	
A.	Prints	"Run/meExcep/on"	in	
console	
B.	Prints	"Excep/on"	
C.	Prints	"Error"	
D.	Prints	"Throwable"	
E.	Does	not	print	any	output	on	
console
Answer	
Consider	the	following	program:	
	
class	Asser/onFailure	{	
				public	sta/c	void	main(String	[]args)	{	
								try	{	
													assert	false;	
								}	catch(Run/meExcep/on	re)	{	
													System.out.println("Run/meExcep/on");	
								}	catch(Excep/on	e)	{	
													System.out.println("Excep/on");	
								}	catch(Error	e)	{	//	LINE	A	
														System.out.println("Error"	+	e);	
									}	catch(Throwable	t)	{	
														System.out.println("Throwable");	
									}		
						}	
}	
h@ps://ocpjava.wordpress.com	
This	program	is	invoked	from	the	
command	line	as	follows:	
java	Asser)onFailure	
	
Choose	one	of	the	following	op/ons	
describes	the	behaviour	of	this	
program:	
	
A.	Prints	"Run/meExcep/on"	in	
console	
B.	Prints	"Excep/on"	
C.	Prints	"Error"	
D.	Prints	"Throwable"	
E.	Does	not	print	any	output	on	
console
Explana&on	
E	.	Does	not	print	any	output	on	the	console	
	
By	default,	asser/ons	are	disabled.	If	-ea	(or	the	-
enableasser/ons	op/on	to	enable	asser/ons),	then	the	
program	would	have	printed	"Error"	since	the	excep/on	
thrown		in	the	case	of	asser/on	failure	is		
java.lang.Asser/onError	,	which	is	derived	from	
the	Error	class	
h@ps://ocpjava.wordpress.com
Ques&on		
Consider	the	following	class	hierarchy	from	the	package		
javax.security.auth.login	and	answer	the	ques&ons.	
	
	
	
	
	
	
	
Which	of	the	following	handlers	that	makes	use	of	mul/-catch	excep/on	handler	
feature	will	compile	without	errors?	
	
A.	catch	(AccountExcep/on	|	LoginExcep/on	excep/on)	
B.	catch	(AccountExcep/on	|	AccountExpiredExcep/on	excep/on)	
C.	catch	(AccountExpiredExcep/on	|	AccountNotFoundExcep/on	excep/on)	
D.	catch	(AccountExpiredExcep/on	excep/on1	|	AccountNotFoundExcep/on	
excep/on2)	
h@ps://ocpjava.wordpress.com
Answer	
Consider	the	following	class	hierarchy	from	the	package		
javax.security.auth.login	and	answer	the	ques&ons.	
	
	
	
	
	
	
	
Which	of	the	following	handlers	that	makes	use	of	mul/-catch	excep/on	handler	
feature	will	compile	without	errors?	
	
A.	catch	(AccountExcep/on	|	LoginExcep/on	excep/on)	
B.	catch	(AccountExcep/on	|	AccountExpiredExcep/on	excep/on)	
C.	catch	(AccountExpiredExcep&on	|	AccountNotFoundExcep&on	excep&on)	
D.	catch	(AccountExpiredExcep/on	excep/on1	|	AccountNotFoundExcep/on	
excep/on2)	
h@ps://ocpjava.wordpress.com
Explana&on	
C	.	catch	(A	ccountExpiredExcep/on	|	A	
ccountNotFoundExcep/on	excep/on)	
	
For	A	and	B,	the	base	type	handler	is	provided	with	the	
derived	type	handler,	hence	the	mul/-catch	is	incorrect.		
	
For	D,	the	excep/on	name	excep/on1	is	redundant	and	will	
result	in	a	syntax	error.	C	is	the	correct	op/on	and	this	will	
compile	fine	without	errors.	
h@ps://ocpjava.wordpress.com
•  Check out our latest book for
OCPJP 8 exam preparation
•  http://amzn.to/1NNtho2
•  www.apress.com/9781484218358
(download source code here)
•  https://ocpjava.wordpress.com
(more ocpjp 8 resources here)
http://facebook.com/ocpjava

More Related Content

What's hot

Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
Nadeesha Thilakarathne
 
Java static keyword
Java static keywordJava static keyword
Java static keyword
Lovely Professional University
 
Java programs
Java programsJava programs
Storage classes in C
Storage classes in CStorage classes in C
Storage classes in C
Nitesh Bichwani
 
u.cs101 "Алгоритм ба програмчлал" Лекц №7
u.cs101 "Алгоритм ба програмчлал" Лекц №7u.cs101 "Алгоритм ба програмчлал" Лекц №7
u.cs101 "Алгоритм ба програмчлал" Лекц №7
Khuder Altangerel
 
JVM: A Platform for Multiple Languages
JVM: A Platform for Multiple LanguagesJVM: A Platform for Multiple Languages
JVM: A Platform for Multiple Languages
Kris Mok
 
Php operators
Php operatorsPhp operators
Php operators
Aashiq Kuchey
 
Ci prog tolgoi file хичээл 2
Ci prog tolgoi file хичээл 2Ci prog tolgoi file хичээл 2
Ci prog tolgoi file хичээл 2
Urantuya Purevtseren
 
Web design lecture 2
Web design   lecture 2Web design   lecture 2
Web design lecture 2
Chantsaldulam Ganbadrakh
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
Surbhi Panhalkar
 
Applet
 Applet Applet
Applet
swapnac12
 
Лекц 7 (Давталтуудын Си хэлэнд)
Лекц 7 (Давталтуудын Си хэлэнд)Лекц 7 (Давталтуудын Си хэлэнд)
Лекц 7 (Давталтуудын Си хэлэнд)
Мөнхбаярын Цэцэнцэнгэл
 
Algoritm
AlgoritmAlgoritm
Algoritm
shulam
 
Exception Handling
Exception HandlingException Handling
Exception Handling
Sunil OS
 
U.cs101 алгоритм программчлал-2
U.cs101   алгоритм программчлал-2U.cs101   алгоритм программчлал-2
U.cs101 алгоритм программчлал-2
Badral Khurelbaatar
 
Java loops for, while and do...while
Java loops   for, while and do...whileJava loops   for, while and do...while
Java loops for, while and do...while
Jayfee Ramos
 
1.1 - Introduction to Small Basic.pptx
1.1 - Introduction to Small Basic.pptx1.1 - Introduction to Small Basic.pptx
1.1 - Introduction to Small Basic.pptx
GanaaChinbat1
 

What's hot (20)

Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Java static keyword
Java static keywordJava static keyword
Java static keyword
 
Java programs
Java programsJava programs
Java programs
 
Storage classes in C
Storage classes in CStorage classes in C
Storage classes in C
 
u.cs101 "Алгоритм ба програмчлал" Лекц №7
u.cs101 "Алгоритм ба програмчлал" Лекц №7u.cs101 "Алгоритм ба програмчлал" Лекц №7
u.cs101 "Алгоритм ба програмчлал" Лекц №7
 
JVM: A Platform for Multiple Languages
JVM: A Platform for Multiple LanguagesJVM: A Platform for Multiple Languages
JVM: A Platform for Multiple Languages
 
Php operators
Php operatorsPhp operators
Php operators
 
Print function in PHP
Print function in PHPPrint function in PHP
Print function in PHP
 
Ci prog tolgoi file хичээл 2
Ci prog tolgoi file хичээл 2Ci prog tolgoi file хичээл 2
Ci prog tolgoi file хичээл 2
 
Web design lecture 2
Web design   lecture 2Web design   lecture 2
Web design lecture 2
 
Лекц №15
Лекц №15Лекц №15
Лекц №15
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
 
Applet
 Applet Applet
Applet
 
Лекц 7 (Давталтуудын Си хэлэнд)
Лекц 7 (Давталтуудын Си хэлэнд)Лекц 7 (Давталтуудын Си хэлэнд)
Лекц 7 (Давталтуудын Си хэлэнд)
 
Algoritm
AlgoritmAlgoritm
Algoritm
 
Exception Handling
Exception HandlingException Handling
Exception Handling
 
U.cs101 алгоритм программчлал-2
U.cs101   алгоритм программчлал-2U.cs101   алгоритм программчлал-2
U.cs101 алгоритм программчлал-2
 
Java loops for, while and do...while
Java loops   for, while and do...whileJava loops   for, while and do...while
Java loops for, while and do...while
 
1.1 - Introduction to Small Basic.pptx
1.1 - Introduction to Small Basic.pptx1.1 - Introduction to Small Basic.pptx
1.1 - Introduction to Small Basic.pptx
 
Cs101 lec1
Cs101 lec1Cs101 lec1
Cs101 lec1
 

Similar to OCP Java SE 8 Exam - Sample Questions - Exceptions and Assertions

모던자바의 역습
모던자바의 역습모던자바의 역습
모던자바의 역습
DoHyun Jung
 
Cs141 mid termexam2_v1
Cs141 mid termexam2_v1Cs141 mid termexam2_v1
Cs141 mid termexam2_v1
Fahadaio
 
OCP Java SE 8 Exam - Sample Questions - Generics and Collections
OCP Java SE 8 Exam - Sample Questions - Generics and CollectionsOCP Java SE 8 Exam - Sample Questions - Generics and Collections
OCP Java SE 8 Exam - Sample Questions - Generics and Collections
Ganesh Samarthyam
 
Java Generics
Java GenericsJava Generics
Java Generics
jeslie
 
Lecture - 5 Control Statement
Lecture - 5 Control StatementLecture - 5 Control Statement
Lecture - 5 Control Statement
manish kumar
 
Nalinee java
Nalinee javaNalinee java
Nalinee java
Nalinee Choudhary
 
JUnit 5
JUnit 5JUnit 5
Java - Exception Handling
Java - Exception HandlingJava - Exception Handling
Java - Exception HandlingPrabhdeep Singh
 
Inside the JVM - Follow the white rabbit! / Breizh JUG
Inside the JVM - Follow the white rabbit! / Breizh JUGInside the JVM - Follow the white rabbit! / Breizh JUG
Inside the JVM - Follow the white rabbit! / Breizh JUG
Sylvain Wallez
 
Pimp My Java LavaJUG
Pimp My Java LavaJUGPimp My Java LavaJUG
Pimp My Java LavaJUG
Daniel Petisme
 
01-ch01-1-println.ppt java introduction one
01-ch01-1-println.ppt java introduction one01-ch01-1-println.ppt java introduction one
01-ch01-1-println.ppt java introduction one
ssuser656672
 
Exception handling
Exception handlingException handling
Exception handling
vishal choudhary
 
Junit_.pptx
Junit_.pptxJunit_.pptx
Junit_.pptx
Suman Sourav
 
Inside the JVM - Follow the white rabbit!
Inside the JVM - Follow the white rabbit!Inside the JVM - Follow the white rabbit!
Inside the JVM - Follow the white rabbit!
Sylvain Wallez
 

Similar to OCP Java SE 8 Exam - Sample Questions - Exceptions and Assertions (20)

모던자바의 역습
모던자바의 역습모던자바의 역습
모던자바의 역습
 
3 j unit
3 j unit3 j unit
3 j unit
 
Slides
SlidesSlides
Slides
 
Cs141 mid termexam2_v1
Cs141 mid termexam2_v1Cs141 mid termexam2_v1
Cs141 mid termexam2_v1
 
OCP Java SE 8 Exam - Sample Questions - Generics and Collections
OCP Java SE 8 Exam - Sample Questions - Generics and CollectionsOCP Java SE 8 Exam - Sample Questions - Generics and Collections
OCP Java SE 8 Exam - Sample Questions - Generics and Collections
 
Java Generics
Java GenericsJava Generics
Java Generics
 
Lecture - 5 Control Statement
Lecture - 5 Control StatementLecture - 5 Control Statement
Lecture - 5 Control Statement
 
Nalinee java
Nalinee javaNalinee java
Nalinee java
 
Java API, Exceptions and IO
Java API, Exceptions and IOJava API, Exceptions and IO
Java API, Exceptions and IO
 
JUnit 5
JUnit 5JUnit 5
JUnit 5
 
Java - Exception Handling
Java - Exception HandlingJava - Exception Handling
Java - Exception Handling
 
Java
JavaJava
Java
 
JavaFXScript
JavaFXScriptJavaFXScript
JavaFXScript
 
Loop
LoopLoop
Loop
 
Inside the JVM - Follow the white rabbit! / Breizh JUG
Inside the JVM - Follow the white rabbit! / Breizh JUGInside the JVM - Follow the white rabbit! / Breizh JUG
Inside the JVM - Follow the white rabbit! / Breizh JUG
 
Pimp My Java LavaJUG
Pimp My Java LavaJUGPimp My Java LavaJUG
Pimp My Java LavaJUG
 
01-ch01-1-println.ppt java introduction one
01-ch01-1-println.ppt java introduction one01-ch01-1-println.ppt java introduction one
01-ch01-1-println.ppt java introduction one
 
Exception handling
Exception handlingException handling
Exception handling
 
Junit_.pptx
Junit_.pptxJunit_.pptx
Junit_.pptx
 
Inside the JVM - Follow the white rabbit!
Inside the JVM - Follow the white rabbit!Inside the JVM - Follow the white rabbit!
Inside the JVM - Follow the white rabbit!
 

More from Ganesh Samarthyam

Wonders of the Sea
Wonders of the SeaWonders of the Sea
Wonders of the Sea
Ganesh Samarthyam
 
Animals - for kids
Animals - for kids Animals - for kids
Animals - for kids
Ganesh Samarthyam
 
Applying Refactoring Tools in Practice
Applying Refactoring Tools in PracticeApplying Refactoring Tools in Practice
Applying Refactoring Tools in Practice
Ganesh Samarthyam
 
CFP - 1st Workshop on “AI Meets Blockchain”
CFP - 1st Workshop on “AI Meets Blockchain”CFP - 1st Workshop on “AI Meets Blockchain”
CFP - 1st Workshop on “AI Meets Blockchain”
Ganesh Samarthyam
 
Great Coding Skills Aren't Enough
Great Coding Skills Aren't EnoughGreat Coding Skills Aren't Enough
Great Coding Skills Aren't Enough
Ganesh Samarthyam
 
College Project - Java Disassembler - Description
College Project - Java Disassembler - DescriptionCollege Project - Java Disassembler - Description
College Project - Java Disassembler - Description
Ganesh Samarthyam
 
Coding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean CodeCoding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean Code
Ganesh Samarthyam
 
Design Patterns - Compiler Case Study - Hands-on Examples
Design Patterns - Compiler Case Study - Hands-on ExamplesDesign Patterns - Compiler Case Study - Hands-on Examples
Design Patterns - Compiler Case Study - Hands-on Examples
Ganesh Samarthyam
 
Bangalore Container Conference 2017 - Brief Presentation
Bangalore Container Conference 2017 - Brief PresentationBangalore Container Conference 2017 - Brief Presentation
Bangalore Container Conference 2017 - Brief Presentation
Ganesh Samarthyam
 
Bangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - PosterBangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - Poster
Ganesh Samarthyam
 
Software Design in Practice (with Java examples)
Software Design in Practice (with Java examples)Software Design in Practice (with Java examples)
Software Design in Practice (with Java examples)
Ganesh Samarthyam
 
OO Design and Design Patterns in C++
OO Design and Design Patterns in C++ OO Design and Design Patterns in C++
OO Design and Design Patterns in C++
Ganesh Samarthyam
 
Bangalore Container Conference 2017 - Sponsorship Deck
Bangalore Container Conference 2017 - Sponsorship DeckBangalore Container Conference 2017 - Sponsorship Deck
Bangalore Container Conference 2017 - Sponsorship Deck
Ganesh Samarthyam
 
Let's Go: Introduction to Google's Go Programming Language
Let's Go: Introduction to Google's Go Programming LanguageLet's Go: Introduction to Google's Go Programming Language
Let's Go: Introduction to Google's Go Programming Language
Ganesh Samarthyam
 
Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction
Ganesh Samarthyam
 
Java Generics - Quiz Questions
Java Generics - Quiz QuestionsJava Generics - Quiz Questions
Java Generics - Quiz Questions
Ganesh Samarthyam
 
Java Generics - by Example
Java Generics - by ExampleJava Generics - by Example
Java Generics - by Example
Ganesh Samarthyam
 
Software Architecture - Quiz Questions
Software Architecture - Quiz QuestionsSoftware Architecture - Quiz Questions
Software Architecture - Quiz Questions
Ganesh Samarthyam
 
Docker by Example - Quiz
Docker by Example - QuizDocker by Example - Quiz
Docker by Example - Quiz
Ganesh Samarthyam
 
Core Java: Best practices and bytecodes quiz
Core Java: Best practices and bytecodes quizCore Java: Best practices and bytecodes quiz
Core Java: Best practices and bytecodes quiz
Ganesh Samarthyam
 

More from Ganesh Samarthyam (20)

Wonders of the Sea
Wonders of the SeaWonders of the Sea
Wonders of the Sea
 
Animals - for kids
Animals - for kids Animals - for kids
Animals - for kids
 
Applying Refactoring Tools in Practice
Applying Refactoring Tools in PracticeApplying Refactoring Tools in Practice
Applying Refactoring Tools in Practice
 
CFP - 1st Workshop on “AI Meets Blockchain”
CFP - 1st Workshop on “AI Meets Blockchain”CFP - 1st Workshop on “AI Meets Blockchain”
CFP - 1st Workshop on “AI Meets Blockchain”
 
Great Coding Skills Aren't Enough
Great Coding Skills Aren't EnoughGreat Coding Skills Aren't Enough
Great Coding Skills Aren't Enough
 
College Project - Java Disassembler - Description
College Project - Java Disassembler - DescriptionCollege Project - Java Disassembler - Description
College Project - Java Disassembler - Description
 
Coding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean CodeCoding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean Code
 
Design Patterns - Compiler Case Study - Hands-on Examples
Design Patterns - Compiler Case Study - Hands-on ExamplesDesign Patterns - Compiler Case Study - Hands-on Examples
Design Patterns - Compiler Case Study - Hands-on Examples
 
Bangalore Container Conference 2017 - Brief Presentation
Bangalore Container Conference 2017 - Brief PresentationBangalore Container Conference 2017 - Brief Presentation
Bangalore Container Conference 2017 - Brief Presentation
 
Bangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - PosterBangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - Poster
 
Software Design in Practice (with Java examples)
Software Design in Practice (with Java examples)Software Design in Practice (with Java examples)
Software Design in Practice (with Java examples)
 
OO Design and Design Patterns in C++
OO Design and Design Patterns in C++ OO Design and Design Patterns in C++
OO Design and Design Patterns in C++
 
Bangalore Container Conference 2017 - Sponsorship Deck
Bangalore Container Conference 2017 - Sponsorship DeckBangalore Container Conference 2017 - Sponsorship Deck
Bangalore Container Conference 2017 - Sponsorship Deck
 
Let's Go: Introduction to Google's Go Programming Language
Let's Go: Introduction to Google's Go Programming LanguageLet's Go: Introduction to Google's Go Programming Language
Let's Go: Introduction to Google's Go Programming Language
 
Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction
 
Java Generics - Quiz Questions
Java Generics - Quiz QuestionsJava Generics - Quiz Questions
Java Generics - Quiz Questions
 
Java Generics - by Example
Java Generics - by ExampleJava Generics - by Example
Java Generics - by Example
 
Software Architecture - Quiz Questions
Software Architecture - Quiz QuestionsSoftware Architecture - Quiz Questions
Software Architecture - Quiz Questions
 
Docker by Example - Quiz
Docker by Example - QuizDocker by Example - Quiz
Docker by Example - Quiz
 
Core Java: Best practices and bytecodes quiz
Core Java: Best practices and bytecodes quizCore Java: Best practices and bytecodes quiz
Core Java: Best practices and bytecodes quiz
 

Recently uploaded

Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Jay Das
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
e20449
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 

Recently uploaded (20)

Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 

OCP Java SE 8 Exam - Sample Questions - Exceptions and Assertions