I dont want to use serialzable in java is there any another
concept
so plz tell me

Answer Posted / niraj deshmukh

Java provides Serialzable Interface to persist the object
state in distributed enviroment (if wanted to transfer the
over wire).

for e.g :
class persist implements Serializable {
// object's state needs to persist
private String state;
.
.
}

There is another way to achieve this behavior using
"Externalizable" interface. By implementing this, developer
can customized the serializable process.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the strictfp keyword?

609


What does this () mean in java?

543


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

569


What does a boolean method return?

623


What is fundamental datatype?

524






How do you compare arrays in java?

500


How many unicode characters are there?

550


Explain java thread life cycle.

578


What is use of static method?

532


Write code of any action class?

544


Explain the difference between an Interface and an Abstract class?

622


What do you understand by synchronization?

588


Define canvas?

564


What is meant by 'Class access modifiers'?

550


What is the diffrence between inner class and nested class?

558