What will be the output of the following Java program?import java.util.*;class Maps {public static void main(String args[]) {TreeMap obj = new TreeMap();obj.put("A", new Integer(1));obj.put("B", new Integer(2));obj.put("C", new Integer(3));System.out.println(obj.entrySet());}}

🎲 Try a Random Question  |  Total Questions in Quiz: 134  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Java Basics Practice Test: java.util &The Collections Framework — practice the complete quiz, review flashcards, or try a random question.

Quiz on java.util concepts including maps, array list, hash set, tree set, linked list, stacks, vectors, dictionary and hash table, rmi, iterators, collection framework overview, collection interface and algorithms. The java.util package is a part of the Java programming language that contains a collection of interfaces and classes that can be used to store and manipulate groups of objects. The Collections Framework provides a unified architecture for storing, retrieving, manipulating, and searching collections of objects. The Collections Framework is a hierarchical structure that consists... Show more

What will be the output of the following Java program?<br>import java.util.*;<br>class Maps <br>{<br>public static void main(String args[]) <br>{<br>TreeMap obj = new TreeMap();<br>obj.put("A", new Integer(1));<br>obj.put("B", new Integer(2));<br>obj.put("C", new Integer(3));<br>System.out.println(obj.entrySet());<br>}<br>}