Java J2EE (14736)
J2ME (151)
Java Related AllOther (507) When we r go to abstract class and when we go to Interface? i have confusion this question while in interview plz clarify
3 7278How to call the m1() method of Base class in below snippet ? class Base { public void m1() { System.out.println("Base m1 "); } public void m2() { System.out.println("Base m1 "); } } ====================== class Derived extends Base { public void m1() { System.out.println("Derived m1"); } public void m3() { System.out.println("Derived m3"); } public static void main(String[] args) { Base ob=new Derived(); ob.m1(); //System.out.println("Hello World!"+ob.m1()); } }
6 9539In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 7433When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 10213Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
1 3113What is the difference between Enumeration and Iteration interfaces? What is the way of to retreive the objects from these interfaces ?
1 6157Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
1 2929
Write a program to find the whether a number is an Armstrong number or not?
Explain public static void main(string args[]) in java.
what is reflection api? How are they implemented?
What do you know about validation plugin ?
What do you understand by casting in java language? What are the types of casting?
What is lazy class?
What is the locale class?
What is the difference between break and continue statements?
Are jvm’s platform independent?
What is the java api?
What is the difference between filters and interceptors ?
What do you mean by an interface in java?
How to sort array in descending order in java?
How is declarative handling of exceptions done in struts ?
What is parsing in java?