MCQOPTIONS
Bookmark
Saved Bookmarks
→
Java Programming
→
Exceptions
→
After line 8 runs. how many objects are eligible f..
1.
After line 8 runs. how many objects are eligible for garbage collection?
A.
0
B.
1
C.
2
D.
3
Answer» C. 2
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Java does not allow nesting of methods. (TRUE / FALSE)
What is the output of the below Java program with a final local variable?
What is the output of the Java program with static variables?
A static-method or a static-variable is shared among all instances of a class. (TRUE / FALSE)
In Java, local variables are stored in __ memory and instance variables are stored in ___ memory.
A local variable declared inside a method can not be used in expressions without initializing it first. (TRUE / FALSE).
What is the output of the below Java program with a "this" operator?
A "this" operator used inside a Java method refers to ___ variable.
What is the output of the below Java program with a void method?
What is the output of the below Java program with an empty return statement?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply