How Array List can be Serialized.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain restrictions for using anonymous inner classes?

589


What languages are pass by reference?

539


What is regex used for?

546


What is callable java?

556


What is the base class in java from which all classes are derived?

519






What are the difference between string, string builder, and string buffer in java?

555


What is the difference between a synchronized method and a synchronized block?

607


why an outer class cannot be declared as private?

3617


Explain the difference between string, stringbuffer and stringbuilder in java?

561


Define immutable object?

581


Where is singleton pattern used?

526


Why is it important to initialize a variable?

491


What are keywords in programming?

566


How will you print number in reverse (descending) order in BST.

582


What is consumer interface?

559