P
Q. What will be the output of the following code
import java.util.LinkedHashSet; import java.util.Set; public class LinkedHashSetTest { public static void main (String args[]) { Set s=new LinkedHashSet(); s.add(“1”); s.add(1); s.add(3); s.add(2); System.out.println(s); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the value of the expression 7 % 3 in Java?
Q. What is the output of the following code?
Q. What is the output of this program?
Q. Jar in java stands for ___.
Q. What is different between a Java applet and a Java application?
Q. If a subclass has the same method as declared in the parent class it is known as ______.
Discusssion
Login to discuss.