Quiz based on must know concepts of Core Java covering almost all essential aspects of programming language. Make sure you come out with flying colors :)Passing: 70%Time: 30 Minutes
Yes
No
True
False
Javac
Javacomp
Java
Jc
Sleep
Wait
Yield
Join
Anonymous inner class
Serialization
Threading
Collection
True
False
ArrayList
TreeSet
TreeMap
TreeList
Implements RandomAccess (marker) interface
Is an ordered but unsorted collection
Is faster than vector
Does not allow duplicate elements
If X equals Y and Y equals Z then X equals Z
X.equals(null) will return false
Null.equals(x) will return false
Null.equals(x) will give NullPointerException
Runnable
Callable
Serializable
Clonable
YavaYavaJavaJava
.YavaYavaJavaJava.
AvaYavaJavaJava
Www.YavaYavaJavaJava.com
5
4
6
1
StringBuffer is slower than StringBuilder
StringBuffer is synchronized while StringBuilder is not
Strings are immutable objects
Always use StringBuffer instead of StringBuilder
1.4
1.3
1.6
1.7
NullPointerException
ArrayIndexOutOfBoundsException
IllegalStateException
FileNotFoundException
Yes
No
For ( ; ; ;){}
For (int i = 0; i ++){}
For (int i = 0; i < 10; i--){ }
For (i < 10)
Two
One Two Three Default
One Two Three
Two Three Default
Instanceof
InstanceOf()
Isinstanceof
IsInstance
String x = (i > 10) ? "Hello" : "World";
String x = (i > 10) : "Hello" ? "World";
String x = (i > 10) @ "Hi" : "Hello";
String x = (i > 10) = "World" ? "Hello";
Finalize
ToString
Finally
Equals
Instance variables live on heap
Local variables live on stack
Local variable and instance variables live on heap
Objects live on heap
Be overloaded
Be overriden
Not be overloaded
Not be overriden
Have loose coupling but high cohesion
Have loose coupling and low cohesion
Have tight coupling and high cohesion
Have tight coupling but low cohesion
Inheritance
Abstraction
Poly Morphism
Encapsulation
Wait!
Here's an interesting quiz for you.