T
Q. What will be the output of given code
import java.util.HashSet; import java.util.Set; public class HashSetTest { public static void main (String args[]) { Set hashSet = new HashSet(); hashSet.add(“1”); hashSet.add(1); hashSet.add(null); hashSet.add(“null”); System.out.println(hashSet); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Q. What is the output of the Java code snippet?
Q. What will be result of expression 9 | 9?
Q. Which of the following sorts the elements were inserted?
Q. Polymorphism in Java is of two tytpes, namely ________ and _______
Q. Package does not provide access protection
Q. What is default layout manager for panels and applets?
Q. Choose the correct statement about Java SWITCH statements.
Q. A SWITCH case statement in Java is a ___ control statement.
Q. From Java five onwards, that one among these is suggested to replace Hashtable?
Discusssion
Login to discuss.