Which of the following can be declared as final in java?

19. Which of the following can be declared as final in java?

  1. Class
  2. Method
  3. Variable
  4. All of these

Answer: D) All of these

Explanation:

Class, method, and variables all can be declared as final in Java.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.