Share on Google+Share on Google+

SCJP Module-11 Question-6

Advertisement
The Sample program given below will test your understanding about the Serializing a class in Java.

To have serialization what necessary steps to be followed ? Choose correct options?

(A) Remove transient variable if any specified.
(B) Class must implements Serializable interface.
(C) Import of java.io.* is necessary.
(D) Must through IOException after class declaration.

Answer:

(B) & (C)

Advertisements

Posted on: July 20, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.