This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes length Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "length" Watch "length" New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
dear all
Is array have .length()or length method ?
please comment.
thanks in advance.
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
Hi shi,
Arrays have a field named length (not a method). so to get an array's length use
I agree. Here's the link:
subject: length
It's not a secret anymore!