-
-
What is the difference between instance,object,refference,class.
Give the answer
-
-
SetEx setEx1 = new SetEx("Java");
String str1 = new String("Java");
String str2 = new String("Java");
s.add(setEx);
s.add(setEx1);
s.add(str1);
s.add(str2);
System.out.println("No Of elements in the Set is " + s.size());
}
What is the result and how?">Import java.util.*;public class SetEx { private String str; SetEx(String s) { str = s } public static void main(String[] ar) { Set s = new HashSet(); SetEx setEx = new SetEx("Java"); SetEx setEx1 = new SetEx("Java"); String str1 = new String("Java"); String str2 = new String("Java"); s.add(setEx); s.add(setEx1); s.add(str1); s.add(str2); System.out.println("No Of elements in the Set is " + s.size()); }What is the result and how?
-
-
-
Convert string object to primitive Integer Type
How can i convert a string object to a primitive Integer type???????Thanks
-
-
-
-
-
Wrapping an Object
What does "wrapping" an object mean?
-
Why wait and notify method in Object class
Why wait and notify method in Object class, why these are not in Thread Class.
-
-
-
What is the Difference between Design Pattern and Architecture? Can any one answer for this plz..
Design Pattern means how u r approaching the problem.Architecture means how the data is flowing in your application
-
-
-
Marker Interface
When there is no methods in the marker interface, then what is the use of marker interface. What is the functionality of the interface. Why do we need to implement marker interface?
-
Core Java Interview Questions
Ans