Can an unreachable object become reachable again?
An unreachable object may become reachable again. This can happen when the object’s finalize() method is invoked and the object performs an operation which... Read more »
An unreachable object may become reachable again. This can happen when the object’s finalize() method is invoked and the object performs an operation which... Read more »
The class whose instances are to be serialized should implement an interface Serializable. Then you pass the instance to the ObjectOutputStream which is connected... Read more »
The serializable interface is an empty interface, it does not contain any methods. So we do not implement any methods. Read more »
Yes it is possible to have control over serialization process. The class should implement Externalizable interface. This interface contains two methods namely readExternal... Read more »
Whenever an object is to be sent over the network, objects need to be serialized. Moreover if the state of an object is to be saved, objects need to be serilazed. Read more »
The serialization mechanism generates an object graph for serialization. Thus it determines whether the included object references are serializable or not. This... Read more »
One should make sure that all the included objects are also serializable. If any of the objects is not serializable then it throws a NotSerializableException. Read more »
There are three exceptions in which serialization doesnot necessarily read and write to the stream. These are 1. Serialization ignores static fields, because they... Read more »
No you will have to import the subpackages explicitly. For eg: Importing com.MyTest.* will import classes in the package MyTest only. It will not import any class... Read more »
When an applet begins, the AWT calls the following methods, in this sequence: init() start() paint() When an applet is terminated, the following sequence of method... Read more »
Following are methods in the life cycle of an Applet: init() method - called when an applet is first loaded. This method is called only once in the entire cycle... Read more »
Log4net is a port of the established log4j Java logging component. Read more »
There are two separate mechanisms provided by the .NET class library - XmlSerializer and SoapFormatter/BinaryFormatter. Microsoft uses XmlSerializer for Web Services,... Read more »
Yes. The garbage collector offers no guarantees about the time when an object will be destroyed and its memory reclaimed. Read more »
Location and visibility: A private assembly is normally used by a single application, and is stored in the application’s directory, or a sub-directory beneath.... Read more »