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

Hi Friends, Can u give few interview questions which relates ArrayList and Hashmap. I mean how to link ArrayList and HashMap.I know this is not good way of asking questions like this , but i need

1 Answers   Microsoft, Wipro,


Difference between java and javascript

0 Answers  


Is special character in java?

0 Answers  


What do you mean by order of precedence and associativity?

0 Answers  


What do you mean by light weight and heavy weight components?

0 Answers  






What are data structures in java?

0 Answers  


What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?

2 Answers  


Convert Binary tree to linked list.

0 Answers   Amazon,


Why stringbuilder is not thread safe in java?

0 Answers  


What is the structure of java?

0 Answers  


Who is founder of java?

0 Answers  


Is sizeof a preprocessor?

0 Answers  


Categories