import java.io.InputStream;
import java.io.Serializable;
import java.sql.Connection;
class Base implements Serializable{
// assume this class is serializable
}
class Derived extends Base {
Connection con = null;
InputStream in =null;
// is thi class serializable too? noway... as input stream and connection are not serializable object...
// but System.out.println(b instanceof Serializable); == true;
}
public class TestSerializableSubClass {
/**
* @param args
*/
public static void main(
String[] args) {
// TODO Auto-generated method stub
Base b = new Derived();
System.out.println(b instanceof Serializable);
}
}
please advise ......