What is a serializable interface?

Answer Posted / sujanya

Serializable interface is a marker interface.This interface
is not having any methods,if u implement the serialization
to class ,then jvm will take care about the functionality.
when we are using the serialization is if u want to store
the data in persistent state.and u r passing the data
through the network then u must be use the srialization
intreface.
The process of writing the state of an object into a byte
stream is called serialization.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is files manifesting?

1845


Give reasons supporting that string is immutable.

592


Which methods are used during serialization and deserialization process?

637


What are streams?

728


What is a parameter used for?

608






What is the difference in between cpp and java? Can u explain in detail?

697


What is the default size of set in java?

596


How are destructors defined in java?

672


Explain the difference between abstraction and encapsulation.

626


How many bytes are a float?

598


Why does java have two ways to create child threads?

559


Can you declare the main method as final?

615


What are the Main functions of Java?

711


Write a function for palindrome and factorial and explain?

763


What is the difference between throw and throws keywords?

660