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