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 mainString args
Map String, Double countryCapitalMap new HashMap
countryCapitalMap.putLenova;
countryCapitalMap.putApple;
countryCapitalMap.putToshiba:
countryCapitalMap.forEach System.out.printinKey: Value: Line
Select one:
a Compilation error in Line
b Run Time Exception on Line
c Key: Apple Value
Key: Toshiba Value:
Key: Lenova Value:
d Key: Apple Value
Key: Toshiba Value:
Key Lenova Value:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
