J

Jatin Dubey • 3.78K Points
Extraordinary

Q. The following program is an example of?

Code:
class Simple{
public static void main(String args[]){

String s="Sachin";
System.out.println(s.length());//6
}
}
  • (A) length() method
  • (B) intern() method
  • (C) trim() method
  • (D) charAt() method
  • Correct Answer - Option(A)
  • Views: 114
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics