what is purpose of collections.unmodified() method..?



what is purpose of collections.unmodified() method..?..

Answer / shailendra singh rajput

if we can pass list in Collection.unmodified(list) that
means A list implementation can be made read only using
collection.this return new list.if any change in that list
it gave unsupportedException is thrown.

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is the different between get and post?

0 Answers  


what is main purpose of interface?

2 Answers   Accenture, HCL, NIIT,


Why vector is used in java?

0 Answers  


Can a class have multiple subclasses?

0 Answers  


How garbage collection is done in java?

0 Answers  


can we create instance for interface in java?

4 Answers  


Is arraylist sorted in java?

0 Answers  


Can we have any other return type than void for main method?

0 Answers  


How can a gui component handle its own events in java programming?

0 Answers  


Do I need java on my computer?

0 Answers  


What is main difference between variable and constant?

0 Answers  


What is difference between string and stringbuffer?

0 Answers  


Categories