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
Can we assign the reference to this variable?
Tell me are there implementations for sorting and searching in the java libarary?
What is the difference between hashset and treeset in java?
What is replaceall in java?
What's the base class of all exception classes?
Can static methods access instance variables in java?
What is public static void main?
What are java annotations?
Outline the major features of java.
What is native code?
What is local declaration?
What is abstraction in java?
Why do we need data serialization?
Can a class extend 2 classes in java?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?