What is the result?

Given:
import java.io.*;
class Animal {
Animal() {
System.out.print("a");
}
}
class Dog extends Animal implements Serializable {
Dog() {
System.out.print("d");
}
}
public class Beagle extends Dog {
}
If an instance of class Beagle is created, then Serialized, then deSerialized, what is the result?
A. ad
B. ada
C. add
D. adad
E. Compilation fails.
F. An exception is thrown at runtime.

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.