Home » JAVA Programming » Methods » Question
  1. Which of these methods can be used to check whether the given value is a number or not?
    1. checkNumber()
    2. isNaN()
    3. isNumber()
    4. checkNaN()
    5. None of these
Correct Option: B

isNaN() methods returns true if num specified is not a number, otherwise it returns false.



Your comments will be displayed only after manual approval.