In: Computer Science
Discuss Serialization, what is it? What are the processes and features? What is the function of the keyword Transient?
1.serialization is the process of converting an object's state to a sequence of bytes. It is then transmit to memory,database etc.Its mainly done to save the state of the object. We can recreate it when needed.
2.A process has a self-contained execution environment. A process generally has its run-time resources.Process object controls the process and gets information about it. The Process class is an abstract class, therefore, it cannot be instantiated. The important methods of the Process class are destroy(), exitValue(), getErrorStream().
Features of java
1) Simple
Java is easy to learn and its syntax is quite simple, clean and easy to understand.The confusing and ambiguous concepts of C++ are either left out in Java or they have been re-implemented in a cleaner way.
Eg : Pointers and Operator Overloading are not there in java but were an important part of C++.
2)Multithreaded
With Java's multithreaded feature it is possible to write programs that can perform many tasks simultaneously. This design feature allows the developers to construct interactive applications that can run smoothly.
3)Interpreted
Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the linking is an incremental and light-weight process.
4)High Performance
With the use of Just-In-Time compilers, Java enables high performance.
5)Distributed
Java is designed for the distributed environment of the internet.
6)Dynamic
Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry an extensive amount of run-time information that can be used to verify and resolve accesses to objects at run-time.
3.It is used in serialisation. If any variable declared as transient value it will not be serialized.example for object transient variable it would be null value.it have an important role in security constraints.it is good to use this keyword for private data field.