Answer Posted / lakshmidontukurthy
Trying to put a non-serializable variable in a
seriealisible class,we can use transient modifier ,so that
the jvm skips the transient variable ,and make that class
as serializable class
| Is This Answer Correct ? | 9 Yes | 5 No |
Post New Answer View All Answers
What is the purpose of sizeof operator?
Write a code to show a static variable?
What is the similarity between dynamic binding and linking?
What is meant by object?
what do you mean by classloader?
What are different types of expressions?
What is lazy initialization in java?
If a class is declared without any access modifiers, where can the class be accessed?
What is the difference between a synchronized method and a synchronized block?
What is difference between path and classpath variables?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What are the restrictions imposed by a Security Manager on Applets?.
What are the data types supported by java? What is autoboxing and unboxing?
Can a class have more than one object?
What is a lock or purpose of locks in java?