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

(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

1 Expert Approved Answer
Step: 1 Unlock

b... 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!