what is difference between length and length()?

Answer Posted / rakesh

length is used as member of Object class such as String or
array as a member variable
and length() is a fuction which returns length of object
in characters

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What a static class can contains?

692


What is meant by distributed application? Why are we using that in our application?

543


What is difference between equal and == in java?

514


What do you understand by the term singleton?

575


What is a line break?

576






What is variable in java?

516


How many types of interfaces are there?

568


Name container classes in java programming?

586


How is string immutable in java?

537


Can you instantiate the math class?

594


Does sprintf add a null terminator?

554


Highest level event class of the event-delegation model?

3493


Explain the differences between static and dynamic variables?

578


What lambda means?

535


What is the default value of the local variables?

499