wood burning stoves 2.0*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Serializable interface and arrays
 
Similar Threads
Array serialization Question
Serialization, can someone elaborate?
List and method
Serialization Question
Need Help