FileDocCategorySizeDatePackage
PersonSerializable.javaAPI DocExample596Sun Feb 24 19:28:24 GMT 2002None

PersonSerializable

public class PersonSerializable extends Object implements Serializable

Fields Summary
private String
name
private String
occupation
private char
sex
private int
age
Constructors Summary
Methods Summary
public voiddisplayDetails()

        System.out.println("Name = "+name);
        System.out.println("Age = "+age);
        System.out.println("Sex= "+sex);
        System.out.println("Occupation= "+occupation);
    
public voidsetDetails(java.lang.String name, int age, char sex, java.lang.String occupation)

        this.name = name;
        this.age = age;
        this.occupation = occupation;
        this.sex = sex;