11. Which of these is true about unmodifiableCollection() method?
12. What will be the output of the following Java code?
import java.lang.reflect.*;
class Additional_packages
{
public static void main(String args[])
{
try
{
Class c = Class.forName("java.awt.Dimension");
Constructor constructors[] = c.getConstructors();
for (int i = 0; i < constructors.length; i++)
System.out.println(constructors[i]);
}
catch (Exception e)
{
System.out.print("Exception");
}
}
}
import java.lang.reflect.*;
class Additional_packages
{
public static void main(String args[])
{
try
{
Class c = Class.forName("java.awt.Dimension");
Constructor constructors[] = c.getConstructors();
for (int i = 0; i < constructors.length; i++)
System.out.println(constructors[i]);
}
catch (Exception e)
{
System.out.print("Exception");
}
}
}
13. Which of these method is used add an element and corresponding key to a map?
14. How to remove duplicates from List?
15. Which of these iterators can be used only with List?
16. Is hashmap an ordered collection.
17. How is Arrays.asList() different than the standard way of initialising List?
18. What is difference between dequeue() and peek() function of java?
19. What is Remote method invocation (RMI)?
20. Which of these method of ArrayList class is used to obtain present size of an object?
Read More Section(Collections Framework in java)
Each Section contains maximum 100 MCQs question on Collections Framework in java. To get more questions visit other sections.