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

Is void a data type?

0 Answers  


What is sortedmap interface?

0 Answers  


How do you find the independent variable?

0 Answers  


Can you call a private data from an inner class?

6 Answers  


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

0 Answers  






What is emant by API? is it related to java only or it is common for all OOPS supporting language?

3 Answers  


What is a Presistent Object?

0 Answers   InfoAxon Technologies,


What do you mean by an object in java?

0 Answers  


Explain the difference between comparator and comparable in java?

0 Answers  


What is file in java?

0 Answers  


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

0 Answers  


Why is java multithreaded?

0 Answers  


Categories