-
What is the difference between the >> and >>> operators
The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that havebeen shifted out.
-
What is the range of the char type
The range of the char type is 0 to 2^16 - 1.
-
What is the purpose of finalization
The purpose of finalization is to give an unreachable object the opportunity to performany cleanup processing before the object is garbage collected.
-
What invokes a thread's run() method
After a thread is started, via its start() method or that of the Thread class, the JVMinvokes the thread's run() method when the thread is initially executed.
-
-
-
-
-
What do mean by polymorphism, inheritance, encapsulation?
Polymorhism: is a feature of OOPl that at run time depending upon the type of object the appropriate method is called.Inheritance: is a feature of OOPL that represents the "is a" relationship between different objects(classes). Say in real life a manager is a employee. So in OOPL manger class is inherited from the employee class. Encapsulation: is a feature of OOPL that is used to hide the information.
-
-
-
-
-
-
-
-
-
-
-
Java Interview Questions
Ans