How Array List can be Serialized.

Answers were Sorted based on User's Feedback



How Array List can be Serialized...

Answer / tirupathi rao

By Default all the Collection classes are serialized.And
Serializable is not a class its an Interface.

Is This Answer Correct ?    42 Yes 4 No

How Array List can be Serialized...

Answer / ysr

Array list implements Cloneable, Collection, List,
RandomAccess, Serializable
Interfaces. So no need to implement the serialized
interface.

Is This Answer Correct ?    21 Yes 1 No

How Array List can be Serialized...

Answer / srinu

Arraylist are already implent serializible interface.

Is This Answer Correct ?    14 Yes 0 No

How Array List can be Serialized...

Answer / javachi

To have serialized array list, we need to implement the serializable interface.

Is This Answer Correct ?    6 Yes 6 No

How Array List can be Serialized...

Answer / rishi

by serialized interface

Is This Answer Correct ?    4 Yes 6 No

How Array List can be Serialized...

Answer / dhaval

there is a method dont remember the name perfectly
though......Collections.synchronizedList(myList)

ArrayList myList = new ArrayList();

Collections.synchronizedList(myList)

Is This Answer Correct ?    7 Yes 14 No

How Array List can be Serialized...

Answer / kumaraswamy18

It is done by extending Serializiable class

Is This Answer Correct ?    9 Yes 40 No

Post New Answer

More Core Java Interview Questions

What is the use join() in Threads ?

5 Answers   HCL,


What is unmodifiable list in java?

0 Answers  


Can static methods be overridden?

5 Answers   Bravura Solutions,


How many types of gc are there in java?

0 Answers  


Difference between Hash Table and Hash Map?

10 Answers   Persistent,


. Define Copy Constructor in Java

1 Answers  


What are thread local variables?

0 Answers  


What are serialization and deserialization?

0 Answers  


What are generic methods?

0 Answers  


for what purpose we use applets ?

3 Answers   Mindlogicx,


How to create a fecelet view?

0 Answers  


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

0 Answers   HCL,


Categories