In Serialization, whether you will use Static variables?
Answers were Sorted based on User's Feedback
Answer / chandramouli
We cannot serialize the static variables because static is
specific to the class not for the objects.
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / ranganathkini
Static variables are not serialized during object serialization.
If u want to serialize static fields, then u must use ur own
serialization overrides and implement the
java.io.Externalizable interface on the class.
Is This Answer Correct ? | 3 Yes | 2 No |
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion
explain the life cycle of thread?
10 Answers CTS, NIIT, TCS,
What is the difference between sleep and wait in java?
What does provide mean construction?
Explain what is encapsulation?
What happens when heap memory is full?
different between exception and error? explaim check and uncheck exception
What is object
In case of inheritance what is the execution order of constructor and destructor?
How can we run a java program without making any object?
What is use of inner class in java?
Is ++ operator is thread safe in java?