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 ();](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1704/7/8/7/259659cfd3b49ed71704787257510.jpg)
(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
d ... View full answer
Get step-by-step solutions from verified subject matter experts
