what is difference between length and length()?

Answer Posted / dinesh

length is a variable wich is used in arrays for find out
the length.lenght() is function defined in Object class as
well as String class for find out the length of String

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why pointers are not used in java?

579


Write the algorithm to check the number non-leaf nodes in a tree.

584


What is the meaning of immutable regarding string?

516


What is parsing in java?

527


What is variable and rules of variable?

511






In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

831


What are data types in programming?

546


What are void methods?

568


How to Sort Strings which are given in List and display in ascending order without using java api.

3756


Name some OOPS Concepts in Java?

636


What is string pooling concept?

549


When should I use a singleton?

553


Can array grow dynamically in java?

517


Explain the importance of finalize() method.

561


What is mean by encoding?

625