How Array List can be Serialized.
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / srinu
Arraylist are already implent serializible interface.
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / javachi
To have serialized array list, we need to implement the serializable interface.
| Is This Answer Correct ? | 6 Yes | 6 No |
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 |
Answer / kumaraswamy18
It is done by extending Serializiable class
| Is This Answer Correct ? | 9 Yes | 40 No |
Why is whitespace important?
What is a layout manager?
What is the difference between hashmap and hashtable in java?
How does varargs work in java?
What are packages and name a few?
What is exception and error? and what is the difference between them?
How do weakhashmap works?
Hi Friends, can u give me Real Time example for interface and abstract class.(With Banking Example)
What is the char data type?
Why java is platform independent? Explain.
How to declare objects of a class ?
0 Answers Akamai Technologies,
What is the purpose of checked and unchecked exceptions in JAVA?