-
-
-
-
-
Implement Interface using Polymorphism
How an interface can be implemented using polymorphism?Why multiple inheritence is not used in Java?
-
-
Restrict a Class
How can we restrict a class so that no instance creation of class possible without declaring the class as Abstract ?
-
-
Access Specifier
What will happen if same access specifier repeats more than once within a class?
-
Read Number Methods
How many methods to read numbers and characters and what should be used.
-
Null keyword
Is null a keyword? if not what is it?
-
-
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
-
-
-
Core Java Interview Questions
Ans