Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
maps
:
Content language: English
Русский
What will be the result of compilation and execution of the following code? import java.util.*; class SomeClass { public static void main(String[] args) { TreeMap<String, Integer> myMap = new TreeMap<String, Integer>(); myMap.put("ab", 1); myMap.put("ca", 2); myMap.put("ba", 3); NavigableMap<String, Integer> myMap1 = myMap.headMap("da", true); myMap.put("ea", 4); myMap1.put("bc", 5); System.out.println(myMap1.get("ab") + " " + myMap1.get("ea")); } }
maps
← Prev
1
2
Next →
Sign Up Now
or
Subscribe for future quizzes