Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

serilize filke in java

package com.mkyong;

import java.io.Serializable;

public class Person implements Serializable {

	private static final long serialVersionUID = 1L;
	private String name;
	private int age;
	private String gender;

	Person() {
	};

	Person(String name, int age, String gender) {
		this.name = name;
		this.age = age;
		this.gender = gender;
	}

	@Override
	public String toString() {
		return "Name:" + name + "
Age: " + age + "
Gender: " + gender;
	}
}
Source by mkyong.com #
 
PREVIOUS NEXT
Tagged: #serilize #filke #java
ADD COMMENT
Topic
Name
4+4 =