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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / haneef

using annatations it is possible

Is This Answer Correct ?    0 Yes 0 No

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

Answer / guest

use the keyword transient...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the difference between a choice and a list?

0 Answers  


why doesn't java run on all platforms?

0 Answers  


Is there any difference between nested classes and inner classes?

0 Answers  


What is the purpose of nested class in java?

0 Answers  


Why main method is static in java?

0 Answers  






What is the difference between throw and throws in java?

0 Answers  


What is the difference between keyword and identifier?

0 Answers  


What are streams in java 8?

0 Answers  


What is the difference between a constructor and a method?

0 Answers  


Describe method overriding

0 Answers  


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

0 Answers  


What will happen if we write code like: try{}catch(exception e)catch(IOException i)

6 Answers   CTS, TCS,


Categories