Home / Programming MCQs / JAVA MCQs / Question
R
Q. What is garbage collection in java?
Garbage collection in Java is the process by which Java programs perform automatic memory management.
You must be Logged in to update hint/solution
The keyword used to create a new object in Java is ___.
Which of these keywords is used to manually throw an exception?
What is the output of this program?
Constructor does not perform other tasks instead of initialization
What is used to get class name in reflection?
What is the output of the below Java program with a void method?
In Java, a constructor with no parameters or no arguments is called ___ constructor.
Annotation type definition looks similar to which of the following?
Discusssion
Login to discuss.