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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java allow default arguments?

589


What is primitive array?

513


Is array size fixed in java?

534


Is there any difference between synchronized methods and synchronized statements?

580


Which variables are stored in stack?

442






Which language is java?

538


Why is core java important?

570


What is the point of java?

550


What is the this keyword?

554


What is connection class in java?

508


What are selection structures?

534


what is inner class in java?

622


What is mutable object and immutable object?

625


What about abstract classes in java?

606


Can a class extend 2 classes in java?

554