How to prevent a field from serialization ?

Answer Posted / ravikiran(aptech mumbai)

by declaring the varable transient

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Hash Table? What are the advantages of using a hash table?

603


What is a treeset class?

554


Are arrays classes in java?

530


How many types of memory areas are allocated by JVM in java?

586


what is meant by Garbage collection?

616






What will happen if a thrown exception is not handled?

557


How hashmap works in java?

560


What is the generic class?

527


Is object a data type?

552


Explain about sets?

565


What happens if an exception is throws from an object's constructor?

621


Give a brief description of java socket programming?

517


What is %d in printf?

516


Is java developer a good career?

548


Is Java a dying language?

566