Hi all
I found this question in one of the mock exams for
java 5.0
can anyone predict the output for this code..
import java.io.*;
class Player {
Player(){ System.out.println("p");
}
}
class Ex extends Player implements Serializable {
Ex(){System.out.println("c");}
public static void main(
String args[]){
Ex f= new Ex();
try
{
FileInputStream fin = new FileInputStream("play.txt");
ObjectInputStream out1 = new ObjectInputStream(fin);
Ex b= (Ex) out1.readObject();
out1.close();
}catch(Exception e){}
}
}