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

Name and explain the types of ways which are used to pass arguments in any function in java.

0 Answers  


What are different type of exceptions in java?

0 Answers  


What are the topics in core java?

0 Answers  


Can we define private and protected modifiers for the members in interfaces?

0 Answers  


Can arraylist contain null values?

0 Answers  






what is meant by package in java?

5 Answers  


what is comparable and comparator interface?

0 Answers  


Difference between Preemptive scheduling vs. Time slicing?

0 Answers  


How to invoke external process in java.

0 Answers  


can you use the two main method in same class?how?

4 Answers   DELL, Geosoft, SparkTG,


Can a constructor call another constructor?

0 Answers  


Explain serialization and deserialization in java?

0 Answers  


Categories