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 Serializable interface and arrays 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 "Serializable interface and arrays" Watch "Serializable interface and arrays" New topic

Serializable interface and arrays

Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
In Dan's exam, Array Assignments q 3 explaination:
All array types implement the Serializable interface and may be assigned to a reference of type Serializable.

Where in API it says that arrays implement Serializable interface?
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
Sorry. It is in JLS:

There is no permitted conversion from any array type to any interface type,
except to the interface types and Cloneable, which
are implemented by all arrays.
I agree. Here's the link:
subject: Serializable interface and arrays
It's not a secret anymore!