In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..
public class Javaexcercise {
public static void main(String[] args)
{
String str = "TechStudy.org";
// Get the length of str.
int len = str.length();
System.out.println("The string length of '"+str+"' is: "+len);
}
}
In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..
Result:
The string length of 'TechStudy.org' is: 13
need an explanation for this answer? contact us directly to get an explanation for this answer