Exercise Questions 5.27
6. Which of the following statements are true with respect to Garbage collector?
(i) It runs in the background and releases objects no longer required
(ii) It is invoked by
finalize() method
(iii) It runs on algorithm at fixed intervals and calls finalize method
(iv) Runs whenever memory available is insufficient
(a) i, ii and iii (b) i, ii, iii and iv (c) i and iv (d) i, ii and iv
7. Which of the following statements are false?
(i) Final variables are constant during run of the program
(ii) Final classes cannot be inherited
(iii) Final Methods can be inherited
(iv) Final variables can be inherited
(a) i, ii and iii (b) i, ii, iii and iv (c) i and ii (d) i, ii and iv
8. Which of the following statements ...