-
wait(), notify() and notyfyAll() methods
Why wait(), notify() and notyfyAll() methods are avialble in Object class but not in Thread class? Explain.
-
Overriding Methods
Suppose a Super Class method throws an exception and this method is Overriden in the subclass with no exception. Now if you create a super class reference that has a subclass object. This throws a compile time error, Why?
-
Synchronization in Java
When We should use Synchronization in Java and when we should not?
-
Is it possible to serialize a single member in a class?
suppose i have 2 members in my class can i serialize a single member? Is there any way to do that?
-
lazy initialisation
what is lazy initialisation in hibernate
-
Implement Interface using Polymorphism
How an interface can be implemented using polymorphism?Why multiple inheritence is not used in Java?
-
Dependency injection
What is dependency injection ?
-
-
-
-
-
-
-
-
-
-
-
An interface contains _________ methods
Skill/Topic: InheritanceA) AbstractB) Non-abstract C) Implemented D) Un-implemented
-
A method is overridden if there is a method in the subclass that has the same name and the ________ set of parameters.
Skill/Topic: InheritanceA) SameB) DifferentC) MixedD) None of the above
-
-
The jsp:useBean attribute is used to indicate the Serialized bean
Skill/Topic: Programming ConstructsA) TrueB) False
-
____________ is the mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse
A) EncapsulationB) ClassC) InheritenceD) Polymorphism
-
Java is Architectural _____________
A) DependentB) NeutralC) IndependentD) None of the above
-
State true or false :- Final methods can be overridden.
A) TrueB) False
-
Which of the following are primitive types?
A) byteB) StringC) integerD) float
-
Which of the following declare an array of string objects? (Select Multiple)
A) String[ ] s;B) String [ ]s:C) String[ s]:D) String s[ ]:
-
What is the priority of the Garbage collector thread of jdk.?
A) low-priorityB) highest priorityC) medium priorityD) decided at runtime
-
-
When to use Interface over abstract class?
Abstract Classes: Classes which cannot be instantiated. This means one cannot make a object of this class or in other way cannot create object by saying ClassAbs abs = new ClassAbs(); where ClassAbs is abstract class.Abstarct classes contains have one or more abstarct methods, ie method body only no implementation.Interfaces: These are same as abstract classes only difference is we an only define...
-
-
Can an object's finalize() method be invoked while it is reachable
An object's finalize() method cannot be invoked by the garbage collector while the objectis still reachable. However, an object's finalize() method may be invoked by otherobjects.