This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

does array an object ?

 
Jenny raj
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
edirg559
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very nice example of code.
It returns a true on my screen.
So that means it is an object, isn't it
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Erik Dirgaria:
...So that means it is an object, isn't it

Absolutely! (It's also a hint that writing test code is often the best way to answer questions.) Here a a couple of references from the Java Language Specification to back this up.

"In the Java programming language arrays are objects..." ~10 Arrays

"An object is a class instance or an array." ~4.3.1 Objects
 
Jenny raj
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi marc

Thanks for clearing my doubt
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic