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
hashtable
:
Content language: English
Русский
What is the result of the following code execution? package tests; import java.util.Hashtable; public class Test { public static void main(String[] args) { Hashtable ht = new Hashtable(); ht.put("1", "2"); ht.put("2", "3"); ht.put("3", "4"); ht.put("4", "2"); if(ht.contains("1")){ System.out.print("1"); } if(ht.contains("2")){ System.out.print("2"); } if(ht.contains("3")){ System.out.print("3"); } if(ht.contains("4")){ System.out.print("4"); } } }
hashtable
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes