Multiple choice

Which of the following is a false statement?

  1. Catch statement can rethrow an exception in Java.

  2. Empty catch block is accepted by Java.

  3. Main is a daemon thread.

  4. Garbage collector is a daemon thread.

  5. Garbage collector can also run forcibly.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Main is not a daemon thread, also any thread stem from main will be non daemon because daemon is derived from parent Thread class.