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 |
What is anonymous class?
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
What is Restrictions in hibernate?
How to write custom exception in java?
what modifiers are used with top-level class?
In Java, what types of classes perform inheritance?
What are format specifiers in java?
What does the “static” keyword mean? Can you override private or static method in java?
Difference between ‘>>’ and ‘>>>’ operators in java?
What are the differences between unchecked exception, checked exception, and errors?
what is enumset?
Explain garbage collection in java?