- Home
- Interview Questions
- Core Java
31.
What happens if an exception is not caught?
If the exception is not caught that results in the uncaughtException() method of the thread's ThreadGroup being invoked, which eventually results in the termination of the program in which it is thrown.
32.
What is the use of set interface ?
It provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements.
33.
How this() works with constructor ?
this() is used to invoke a constructor of the same class.
34.
Difference between a field variable and a local variable?
A field variable is a variable that is declared as a member of a class.
A local variable is a variable that is declared local to a method.
A local variable is a variable that is declared local to a method.
35.
List the container classes ?
That are Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane.