How to prevent a field from serialization ?

Answer Posted / ranganathkini

To prevent a field from being serialized, we have to mark it
with the "transient" keyword

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a local class in java?

589


Is a method a procedure?

559


Is age discrete or continuous?

691


Explain about automatic type conversion in java?

573


How we can generate random numbers in java?

612






If an object is garbage collected, can it become reachable again?

548


What is the most important feature of java? What is an interface?

525


What does substring mean?

515


What is anonymous inner class?

612


Can you declare the main method as final?

530


What is a methodologist?

534


What is difference between printf and scanf?

523


Can we create an object of private class?

551


What is thread life cycle in java?

586


What is static import in java?

534