Question: What is the output of this program? (a) {C=8, B=2} (b) [C=8, B=2] (c) {A=3, C=8, B=2} (d) [A=3, C=8, B=2] import java.util. *; class
What is the output of this program?![import java.util. *; class hashtable { } public static void main(String args []) { Hashtable obj = new](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1704/7/8/7/199659cfcffbb2ed1704787197925.jpg)
(a) {C=8, B=2}
(b) [C=8, B=2]
(c) {A=3, C=8, B=2}
(d) [A=3, C=8, B=2]
import java.util. *; class hashtable { } public static void main(String args []) { Hashtable obj = new Hashtable (); obj. put ("A", new Integer (3)); obj.put ("B", new Integer (2)); obj. put ("C", new Integer (8)); obj. remove (new String ("A")); System.out.print (obj); }
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
b... View full answer
Get step-by-step solutions from verified subject matter experts
