Meaningless Drivel is fun!
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Array" Watch "Array" New topic


Thiru Thangavelu
Ranch Hand

Joined: Aug 29, 2001
Posts: 219

This compiles fine eventhough i didn't declare o as array. [note o is simply declared o instead of o[])
Am i missing anything here?

Thanks,<br />Thiru<br />[SCJP,SCWCD,SCBCD]
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
From the JLS,

In the Java programming language arrays are objects (�4.3.1), are dynamically created, and may be assigned to variables of type Object (�4.3.2). All methods of class Object may be invoked on an array.


SCJP Tipline, etc.
I agree. Here's the link:
subject: Array
It's not a secret anymore!