what is difference between length and length()?

Answer Posted / murali.s

length is a property.it is used to fine array lenght
lenght()is a method.it is used to find string length

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does bitwise or mean?

563


Why java is used everywhere?

584


Why are data types important?

531


Can size_t be negative?

604


Is passing by reference faster?

517






How do you compare objects in java?

493


What is a conditional statement explain with example?

536


What is array command?

551


What is method overloading and method overriding?

531


what is a green thread? : Java thread

567


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

569


List some oops concepts in java?

576


Is singleton class immutable?

532


What is thread life cycle?

534


Which is better stringbuffer or stringbuilder?

521