Core Java Interview Questions And Answers

core java interview questions and answers   Top 2 Core Java Interview Questions And Answers

1) In Java, which of the class is not a part of Java's collection framework?
A. Maps
B. Array
C. Queue
D. Stack

Answer is C

Queue is not the part of collection framework.

2) What is the use of keywords final, finally and finalize?

Final keyword makes the variable not changeable, makes method not overridden, makes the class as non inheritable.
Finally is used with try and catch and always execute even when the an exception is thrown.
Finalize is called when the object is Garbage collected.