Pages
Home
Hacking Tricks
Job & Interview
FunMaza
Movies
Studytonight
All Coupon
Android
Friday, 5 May 2023
Spring Notes
Spring Boot Interview Question Answer
Interview Programe
Core Java Notes
Sunday, 24 March 2019
Example of Java Deserialization .
Code:
?
1
2
3
4
5
6
7
import java.io.*; class Depersist{ public static void main(String args[])throws Exception{ ObjectInputStream in=new ObjectInputStream(new FileInputStream("f.txt")); Student s=(Student)in.readObject(); System.out.println(s.id+" "+s.name); in.close(); } }
Output:
: 211 govind
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)