aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Serializable interface and arrays" Watch "Serializable interface and arrays" New topic
Author

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 java.io.Serializable and Cloneable, which
are implemented by all arrays.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serializable interface and arrays
 
Similar Threads
List and method
Serialization Question
Need Help
Array serialization Question
Serialization, can someone elaborate?