Chapter-3, Java 1. Garbage collector frees the programmer from worrying about memory leaks dangling references creating new objects recursion 2. Which of the following declaration of a local variable is invalid? final int a; static int a; Integer a; long a; 3. Which of the following can be used to copy data from one array to another? System. clone java.lang.toCopy System, array copy java.lang. clone 4. Is null an object? Yes No Sometimes yes None of these 5. A class variable is a variable that is declared inside a class as final static abstract extends 6. Which of the following package need to be imported to use the StringTokenizer class? java.io java.util java.lang java.net 7. The statement System.out.println{Math.ceil(12.3)-Math.floor(3. 9)) ; prints 8.4 prints 8.0 prints 10.0 prints 9.0 8. Which of the following keywords is used to declare exceptions that can possibly occur? handle throws checked manage 9. Exceptions that are expected to possibly occur are called checked exceptions unchecked exceptions runtime exceptions errors 10. Which of the following access specifiers is usually used with inheritance? public private protected package Loading … Question 1 of 10