Question: What is the output of this program? (a) [A, B, C] (b) [1, 2, 3] (c) {A=1, B=2, C=3} (d) [A=1, B=2, C=3] import java.util.

What is the output of this program?import java.util. *; class Maps { public static void main(String args[]) { } } TreeMap obj new Tree Map ();

(a) [A, B, C]

(b) [1, 2, 3]

(c) {A=1, B=2, C=3}

(d) [A=1, B=2, C=3]

import java.util. *; class Maps { public static void main(String args []) { } } TreeMap obj new Tree Map (); obj.put ("A", new Integer (1)); obj.put ("B", new Integer (2)); obj. put ("C", new Integer (3)); System.out.println (obj .entrySet ()); =

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

d ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Advanced Java Programming Questions!