Which of these is not a valid Boolean method in Java?

75. Which of these is not a valid Boolean method in Java?

  1. equals() method
  2. hashCode() method
  3. toString() method
  4. All of these

Answer: D) All of these

Explanation:

All are valid Boolean class methods. Some common methods are equals(), hashCode(), toString(), valueOf(), etc.

Comments and Discussions!

Load comments ↻






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