Post a Job  |   Ask a Question?   |   Already registered? login or register
sumit kumar
05/05/2016 10:21 AM

Interview_Question_Serialization


Hello Guys ! I have a Question that If 100 variables given in any class implements serilizable interface but I want to not serialize 70 variables then how to handle it without transient keyword. Pls give me the answer.
Spam    4 Comments

venkatapradeep,tulagapu
05/05/2016 10:56:41

anant,kumar
05/05/2016 11:02:18
use transient keyword,it is only meant for specially in serialization. e.g :- int age;//Now it will not be serialized String name; age will be not consider in case in serialization.

Vivek,Deshmukh
06/05/2016 01:35:03
make that 70 variable as static

Vikash,Kumar
07/05/2016 23:21:42

Languages :
xml