What is a Transient Object?



What is a Transient Object?..

Answer / Pravin Kumar Pndey

A transient object or variable in Java is used to ignore certain fields during serialization. When a class is serialized, all its non-transient instance variables are written into the output stream. By marking an instance variable as transient, you can prevent it from being serialized.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do you create an array in java?

1 Answers  


Why volatile is used in java?

1 Answers  


When you Click a Button, What event will be fired?

5 Answers  


How do you check if a number is a perfect square?

1 Answers  


What is OOP's Terms with explanation?

1 Answers   Beahead Private Limited,


What initialize variables?

1 Answers  


Is java developer a good career?

1 Answers  


What is java life cycle?

1 Answers  


how to pass the parameters to applets?

1 Answers  


What is the difference between JVM and JRE?

1 Answers  


What does bitwise or mean?

1 Answers  


How does split work in java?

1 Answers  


Categories