Computer Applications

What do the following functions return?


String x = "Vision";
String y = "2020";
System.out.println(x.length());

Java

Java String Handling

39 Likes

Answer

6

Working

x.length() will give the number of characters in string x which is 6.

Answered By

18 Likes


Related Questions