Quiz
Java Quiz 1
This quiz has a time limit, so it opens in the usual player.
Questions in this quiz (2)
1Which statement is true?
- AAll objects that are eligible for garbage collection will be garbage collected by the garbage collector.
- BObjects with at least one reference will never be garbage collected.
- CObjects from a class with the finalize() method overridden will never be garbage collected.
- DObjects instantiated within anonymous inner classes are placed in the garbage collectible heap.
2int x = 3;
int y = 1;
if (x = y) /* Line 3 */
{
System.out.println("x =" + x);
}- Ax = 1
- Bx = 3
- CCompilation fails.
- DThe code runs with no output.
Information
- Description
- Quiz on Java Quiz 1, created by Shimuk Trainings on 26/03/2018.
- Author
- Shimuk Trainings
- Language
- English
- Views
- 4
- Tags
- Rating
- No ratings yet Rate this quiz