Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is difference between length and length()?

Answer Posted / shaik baji

length: It's a built-in property to determine the size of
any array.

lenght(): It's a method of java.lang.String class.
Syntax:
-------
public int length()

It returns the length of the string. The length is equal to
the number of 16-bit Unicode characters in the string.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State the merge-sort principle and its time complexity.

979


Define how can we find the actual size of an object on the heap?

1209


What is the difference between the file and randomaccessfile classes?

1099


How do you empty a list in java?

976


What is a return in java?

1030


What are methods and how are they defined?

1212


Is string passed by reference in java?

1001


What are the kinds of polymorphism?

1092


Is map ordered in java?

948


What are internal variables?

1001


What is a void method java?

959


How can you generate random numbers in java?

1049


Can we call virtual funciton in a constructor ?

2205


What is lambda expression in java?

1044


Which are the two subclasses under exception class?

1093