-
What is the Output of the following Java Program
public interface I1{Static String x="inside I1";public void someMethod();}class A implements I1{ public static void main(String args[[]){ System.out.println("Calling I1 var ..."+I1.x);}}
-
-
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?
-
-
-
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
-
-
-
Why wait and notify method in Object class
Why wait and notify method in Object class, why these are not in Thread Class.
-
Wrapping an Object
What does "wrapping" an object mean?
-
-
-
-
-
Convert string object to primitive Integer Type
How can i convert a string object to a primitive Integer type???????Thanks
-
-
-
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?
-
-
What is the difference between instance,object,refference,class.
Give the answer
Core Java Interview Questions
Ans