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

Write a program to find the whether a number is an Armstrong number or not?

571


Write a program to search a number in the given list of numbers.

625


Why is the main method declared static?

579


What is sizeof () operator?

566


What are the topics in advance java?

507






What is the difference between checked exception and unchecked exception?

521


Is space a string in java?

508


What is oops in java?

561


Explain java coding standards for classes or java coding conventions for classes?

611


Why is stringbuffer faster than string?

480


Is java util regex pattern thread safe?

514


What is the length of a string?

516


What is boolean data type in java?

560


What is the difference between equals() and?

581


Using callable statement how can you pass out parameters, explain with example?

578