Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why do we need data structure in java?

1051


What is the importance of hashcode() and equals() methods?

1041


What is data string?

944


What is the main use of java?

1136


Can we extend immutable class?

966


Why main() method is public, static and void in java ?

1073


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1295


What is difference between iterator access and index access?

1041


Can we sort arraylist in java?

967


What do you mean by checked exceptions?

938


How transient variable is different from volatile variable?

1065


What is the difference between yield() and sleep()?

991


Can a java program have 2 main methods?

1031


What is the purpose of java?

993


extending thread class or implementing runnable interface. Which is better? : Java thread

982