This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Array" Watch "Array" New topic
Author

Array

Joyce Yu
Greenhorn

Joined: Jul 20, 2003
Posts: 6
Hi, I don't understand what's int[], char[].
It's a primitive type array and an object too? so all the object method can apply on it and so does all the Arrays method?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24189
    
  34

A primitive array is indeed an Object, so you can clone() it, get a hashCode() for it, etc. java.util.Arrays is a separate class; note that all its methods are static. They are handy when working with arrays, but they're not methods you can call on arrays directly.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://kickstarter.com/rocket-mass-heater
 
subject: Array