Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 9 What is the output of following code? public void printo Mapcinteger.String hashMap- new HashMap0 hashMap.put(11.Audi hashMap.put(null.null): hashMap.put1. BMW hashMap. putinull.Toyota): System.out.printin(hashMap.sizeOx System.out.printinhashMapb ?
QUESTION 9 What is the output of following code? public void printo Mapcinteger.String hashMap- new HashMap0 hashMap.put(11."Audi hashMap.put(null.null): hashMap.put1. BMW hashMap. putinull."Toyota"): System.out.printin(hashMap.sizeOx System.out.printinhashMapb ? [11, null."BMW","Toyota. O(11-Audr.null- Toyota) 111-BMw.null- Toyota) O Runtime Exception
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started