Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Core Java Interview Questions and Answers

Ques 171. What does the 'final'?? keyword mean in front of a variable? A method? A class?

Ans. FINAL for a variable: value is constant. FINAL for a method: cannot be overridden. FINAL for a class: cannot be derived

Is it helpful? Add Comment View Comments
Ques 172. What is the difference between instanceof and isInstance?
Ans. instanceof is used to check to see if an object can be cast into a specified type without throwing a cast class exception. isInstance() Determines if the specified Object is assignment-compatible with the object represented by this Class. This method is the dynamic equivalent of the Java language instanceof operator. The method returns true if the specified Object argument is non-null and can be cast to the reference type represented by this Class object without raising a ClassCastException. It returns false otherwise.
Is it helpful? Add Comment View Comments
Ques 173. What is garbage collection? What is the process that is responsible for doing that in java?
Ans. Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process
Is it helpful? Add Comment View Comments
Ques 174. What kind of thread is the Garbage collector thread?
Ans. It is a daemon thread.
Is it helpful? Add Comment View Comments
Ques 175. What is a daemon thread?
Ans. These are the threads which can run without user intervention. The JVM can exit when there are daemon thread by killing them abruptly.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2020 WithoutBook