import java.io.*;
class ClassB {
 
  public static void main(String args[]){
       
       FileInputStream fIn=null;
       ObjectInputStream oIn=null;
    try{   
     fIn = new  FileInputStream("c:\\practicalJava\\BestEmployee.ser");

     oIn = new ObjectInputStream(fIn);

     Employee bestEemp=(Employee)oIn.readObject();
     
   }catch (ClassNotFoundException cnf){
	   cnf.printStackTrace();
   } catch (IOException e){
	  try{ 
        oIn.close();
        fIn.close();
	  }catch (IOException ioe){
		  ioe.printStackTrace();
	  }
   }  
   System.out.println("The Employee  object has been deserialized from c:\\practicalJava\\BestEmployee.ser");
  } 
}