Enter your keyword

Blog

JAVA Interview Questions-1

1.What is a transient variable ? Ans: A transient variable is a variable which may not be either serialized or deserialized i.e neither saved nor restored during the process of serialization. if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable […]

JAVA Interview Questions-2

1.What is the use of static import? Ans:If you use static imports we can access static methods and static variables without the reference of class name. 2.Relation between List and LinkedList? Ans:List is an interface , LinkedList is a class which implements it 3. Why Set interface contains unique elements, what internally is Ans:implemented for […]