Question: Infer the code below and choose the correct output. public static void main ( String [ ] args ) ( Map String, Double > countryCapitalMap

Infer the code below and choose the correct output.
public static void main(String[] args)(
Map String, Double > countryCapitalMap = new HashMap >).
countryCapitalMap.put("Lenova",34450.00);
countryCapitalMap.put("Apple",92500.00);
countryCapitalMap.put("Toshiba",53600.00):
countryCapitalMap.forEach System.out.printin(Key: "+k+" Value: "+v./Line 1
}
Select one:
a. Compilation error in Line 1
b. Run Time Exception on Line 1
c. Key: Apple Value 92500.0
Key: Toshiba Value: 53600.0
Key: Lenova Value: 34450.0
d. Key: Apple Value 92500
Key: Toshiba Value: 53600
Key Lenova Value: 34450
 Infer the code below and choose the correct output. public static

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!