KnowledgeBoat Logo
|

Computer Applications

Identify the static method from the list given below:

  1. length()
  2. nextLine()
  3. substring(int)
  4. isLetter(char)

User Defined Methods

10 Likes

Answer

isLetter(char)

Reason — The method isLetter(char) belongs to the Character class and is a static method, meaning it can be called using the class name without creating an object. The other methods (length(), nextLine(), substring(int)) are instance methods that require an object to be invoked.

Answered By

5 Likes


Related Questions