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

How can I debug the Java security exceptions and AccessControlExceptions?

623


Can I learn java in 3 months?

531


What is class variable java?

578


What are the restrictions that are applied to the java static methods?

520


How many types of operators are there?

513






does java support pointers?

556


How do you add an element to an arraylist in java?

481


What is return data type?

552


Is java a virus?

526


Does java support multiple inheritances?

554


What is the finalize method do?

592


How many bits is a word?

554


What is identifier give example?

545


What does sizeof return?

551


Can a boolean be null java?

535