Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1138 Page Views: 

How can you prevent a member variable from becoming serialized?



Posted By: Avi Date: 3 November 2010 08:38:47 PM
 Answer:

By marking it transient


Posted By: avibtech


Date: 3 November 2010 08:38:47 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image xcPv0i
Related Questions
Core Java : What is the difference between a public and a non-public class?

What is the difference between a public and a non-public class?

A public class may be accessed outside of its package. A non-public class may not be accessed outsid....
Category: Core Java Date: 11/8/2010 3:40:55 AM
Core Java : Can an abstract class be final?

Can an abstract class be final?

No.
Category: Core Java Date: 11/8/2010 3:19:49 AM
Core Java : What is the disadvantage of garbage collection?

What is the disadvantage of garbage collection?

It adds an overhead that can affect performance and there is no guarantee that the object will be ga....
Category: Core Java Date: 11/8/2010 12:56:51 AM
Core Java : What modifiers may be used with a top-level class?

What modifiers may be used with a top-level class?

A top-level class may be public, abstract, or final.
Category: Core Java Date: 11/8/2010 12:12:55 AM
Core Java : What is the purpose of garbage collection?

What is the purpose of garbage collection?

The purpose of garbage collection is to identify and discard objects that are no longer needed by a ....
Category: Core Java Date: 11/6/2010 6:35:55 PM