What is a serializable interface?

Answers were Sorted based on User's Feedback



What is a serializable interface?..

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

What is a serializable interface?..

Answer / niranjanravi

Serializable interface is useful if you want to save the
state of a profram to a persistant storage area like file
or database.

Is This Answer Correct ?    0 Yes 0 No

What is a serializable interface?..

Answer / ravikiran(aptech mumbai)

serializable interface will allow the process of
serialization to save the object in outputstream

Is This Answer Correct ?    0 Yes 0 No

What is a serializable interface?..

Answer / amit singh

ravikiran i think ur are getting wrong
is file is output stream i don't think so please checkit
out then some dont this enormous
without serializatio i will do safe object in outputstream
man think it ,because of ur think of seralization
i know dataoutputstream and objectoutputstream just help to
makeit possible not they are going to save its my pointof
view
without outputstream i will show u save the object in
outpurstream not in a file because u just not going to save
state of particular just going to save object think it
always some bookwriter in not true ha
amitsing2008@gmail.com mca(scjp1.5)an many more so
justthink it

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Does every java program need a main?

0 Answers  


interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?

2 Answers  


What is a conditional equation?

0 Answers  


How many types of design patterns are there?

0 Answers  


could you run the java program without main method?

6 Answers  






Is it compulsory for a try block to be followed by a catch block in java for exception handling?

0 Answers  


what is the use of thread?Justify it by project point of view

7 Answers  


What is procedure overloading?

0 Answers  


How to sort elements in a parallel array in java?

0 Answers  


why applet doesn't have main? isn't possible a program with out main?

9 Answers   TCS,


string is immutable? right every one knows that, my question is it advantage or disadvantage making string immutable?

5 Answers   HCL,


what are the different non-access specifiers in java?

5 Answers  


Categories