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 |
Is c better than java?
What is volatile keyword in java
Can multiple catch statements be used in exceptions ?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
what do you mean by stream pipelining in java 8? Explain
What’s meant by anonymous class?
Explain java coding standards for variables ?
What are the properties of thread?
what is real-time example of runtime polymorphism and compile time polymorphism
Why we need to serialize the object
11 Answers CTS, Geometric Software,
Is empty set an element of empty set?
What is the functionality of Webserver?