How 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 9038In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 7116When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 9943Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
2985Post New Cap Gemini Java J2EE AllOther Interview Questions
What about the placement offers which you already have?
Why cost center field is important in equipment master?
What are the different types of users?
Why is #define used?
How much memory do I need on my laptop?
What is the name attribute of the
Which one is faster between nand-sr ff and nor-sr ff?
Is a boolean variable?
Explain the concept of object repository and how qtp recognises objects?
What are the Types of assemblies that can be created in dotnet
What is activex in browser?
How many types of build tool you know?
Does the direction of rotation of d.c. Shunt motor would get reversed if the armature current and field current both are reversed?
how to create a new view in mysql? : Sql dba
what is the efficiency of horizontal & vertical feed water heaters?