Computer Applications

The length of a String object s1 can be obtained using the expression s1 length. (T/F)

Java String Handling

5 Likes

Answer

False

Reason — The length of a String object s1 can be obtained using the expression s1.length() as length() method returns the length of the String object.

Answered By

4 Likes


Related Questions