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 maximum size of arraylist in java?

0 Answers  


What things should be kept in mind while creating your own exceptions in java?

0 Answers  


What is the purpose of the system class in java programming?

0 Answers  


garbate collector(GC)?

4 Answers  


What are the advantages of functions?

0 Answers  


which swing component is similar to rich text box in .net/vb

1 Answers  


String is an immutable object. Then how can the following code be justified. String s1 = ?ABC?; String s1 = s1+?XYZ?; s.o.p(s1); The output is ABCXYZ, which is the value of s1 ?

6 Answers   Flextronics, Keane India Ltd,


how to fing linkedlist is circular or not?

1 Answers   TCS,


How many types of memory areas are allocated by JVM in java?

0 Answers   UGC Corporation,


what is difference between class and object?

43 Answers   College School Exams Tests, HCL,


How many types of voids are there?

0 Answers  


What is variable and constant explain with example?

0 Answers  


Categories