Answer Posted / shaik baji
length: It's a built-in property to determine the size of
any array.
lenght(): It's a method of java.lang.String class.
Syntax:
-------
public int length()
It returns the length of the string. The length is equal to
the number of 16-bit Unicode characters in the string.
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Can you have two constructors in java?
What are different access specifiers in java? Explain
What is the disadvantage of synchronization?
What is the java project architecture?
What does g mean in regex?
Explain creating threads by extending thread class ?
Do extraneous variables affect validity?
How do you get length in java?
Why declare Main() method as a static in java ?
Can we pass a primitive type by reference in java? How
What is byte data type?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is static keyword?
How do you override a variable in java?
How can we achieve thread safety in java?