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
}
}
β
Correct Answer: (A)
length() method
class Simple{
public static void main(String args[]){
String s="Sachin";
System.out.println(s.length());//6
}
}
You must be Logged in to update hint/solution