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 a resource leak ?

1 Answers  


Why do we need wrapper class?

0 Answers  


What is procedure overloading?

0 Answers  


Explain about field hiding in java?

0 Answers  


How do you sort data in java?

0 Answers  






How do singleton patterns work?

0 Answers  


Which sorting is best in java?

0 Answers  


Is there a way to increase the size of an array after its declaration?

0 Answers  


How many types of memory areas are allocated by JVM in java?

0 Answers   UGC Corporation,


How to convert string to char and vice versa?

0 Answers  


class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract?

2 Answers   Logica CMG,


What is difference between word and integer?

0 Answers  


Categories