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
State the merge-sort principle and its time complexity.
Define how can we find the actual size of an object on the heap?
What is the difference between the file and randomaccessfile classes?
How do you empty a list in java?
What is a return in java?
What are methods and how are they defined?
Is string passed by reference in java?
What are the kinds of polymorphism?
Is map ordered in java?
What are internal variables?
What is a void method java?
How can you generate random numbers in java?
Can we call virtual funciton in a constructor ?
What is lambda expression in java?
Which are the two subclasses under exception class?