what is difference between length and length()?

Answer Posted / malligontla

length is used for arrays and length() is used for strings

Is This Answer Correct ?    26 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the synonym of string?

527


Can a main method be overloaded?

563


What is the use of runnable interface?

600


what is heap memory?

652


What is a Presistent Object?

634






What are kinds of processors?

559


define the terminology association.

607


What’s the difference between applets and standalone program?

524


What is anonymous inner class?

607


What are the 5 types of research methods?

582


When is the arraystoreexception thrown?

564


When should you use arraylist and when should you use linkedlist?

484


What is the difference between compiler and jvm?

545


Write a function to find out longest palindrome in a given string?

584


Which data type is a class in java?

567