-
Transient and Volatile.
What is the difference between Transient and Volatile. Does volatile variable is serialized and synchronised.
-
Usage of Abstract class and Interfaces
In Real time when we go for Abstract classes and when we go for Interfaces
-
Static data member
What is the use of static data member?
-
-
Why cant we compare two objects with ==,why we should use only .equals() for objects.
we can compare two Strings with (==) when we assign some string value to the String variable,but if we create an object to that strings and compare eachother we cant use(==) operator ,because we can compare only values with(==) operator but as Objects contains references to that variables we cant use(==) operator,hence .equals() is used on references and (==) is useed on values
-
-
-
-
Array List Collections
What is Use of declaring an array list object like List list = new ArrayList() rather than creating object like ArrayList arr = new ArrayList();
-
-
-
-
-
-
-
What's the difference between Object and "E"?
I'm trying to write an Iterator class for a LinkedList class that I wrote.One of the methods is "public E next()"I try to return an "E" but eclipse says "cannot convert from Object to E".How do I fix this?
-
-
Difference Between Collection and Legacy classes
What are the difference between Legacy classes and Collection other than Synchronized?
-
-
Supplying Arguments to Main Method
What is the meaning of supplying string[] args to main method?
Core Java Interview Questions
Ans