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 lifetime variable?

0 Answers  


What is the main purpose of java?

0 Answers  


what is the Diff. between Access Specifiers and Access Modifiers?

39 Answers   BMC, Cyber Shot, Infosys, VTS, Wipro,


What does a za z0 9 mean?

0 Answers  


Can we declare the static variables and methods in an abstract class?

0 Answers  






Can we declare an anonymous class as both extending a class and implementing an interface?

8 Answers   College School Exams Tests, JVA, TCS, Wipro,


Name the package that always imported by default?

4 Answers  


is memory to the abstract class allocated ..or objects not instantiated

7 Answers   Synechron, TCS,


What is slash r?

0 Answers  


What are three ways in which a thread can enter the waiting state in java programming?

0 Answers  


What is downcasting?

0 Answers  


Describe how to implement singleton design pattern in struts.

0 Answers  


Categories