• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Array

 
Thiru Thangavelu
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the JLS,
§Arrays:

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.

Corey
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic