What is serialVersionUID and what is its need?
The serial version UID is metadata about the serializable object, it is hash code for the serializable object. It contains information about class name, field name, field type, implemented interfaces and super classes. For each modification to serializable object, we have to update serial version UID explicitly. If we do not provide any serial version UID, JVM’s default serialization mechanism generates serial version UID for the object at runtime.
During deserialization, JVM matches the serial version UID from object stream with the serializable object which will receive the stream data. If there is a mismatch in serial version UID, JVM throws InvalidClassException
Is This Answer Correct ? | 7 Yes | 0 No |
What are some examples of variable costs?
as we know a static method could access static data and static method only. then how could main method call the object of aclass which is not static and other non static data
Is java an open source?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What are the basic concepts of OOPS in java?
0 Answers Axtria, ITC Indian Tobacco Company,
what is finalmethod & final variable with example?
what is meant wrapper classes?
how can u create the object with out new operator
What is the format of Inner Class after it compiled?
Is string is a keyword in java?
How would overload a function based on return type?
what is the difference between String s="hello"; and String s=new String("hello");?