Home »
MCQs »
Java MCQs
Which of these is not a valid Boolean method in Java?
75. Which of these is not a valid Boolean method in Java?
- equals() method
- hashCode() method
- toString() method
- All of these
Answer: D) All of these
Explanation:
All are valid Boolean class methods. Some common methods are equals(), hashCode(), toString(), valueOf(), etc.