In java, how we can disallow serialization of variables?

By ayush goel in 22 Sep 2023 | 11:32 am
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

In java, how we can disallow serialization of variables?

22 Sep 2023 | 11:32 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

 To disallow serialization of variables in Java, you can mark them as `transient`. Transient variables are not serialized.


23 Sep 2023 | 04:20 pm
0 Likes

Report

Please describe about the report short and clearly.