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 7319In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 6112When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 9060Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
2603Post New Cap Gemini Java J2EE AllOther Interview Questions
How do I calculate error?
How to declare an array in php?
Expand ________FOR
Explain the cold calling? : insurance cold calling
What is difference between webbased application, web enabled application and seb oriented application? Give some exapmles using Microsft languages?
What things surprised you once you were enrolled in the dental hygienist program?
How sap change request management is helpful?
How to find out kg per Sft ?
If any stored procedure is encrypted, then can we see its definition in activity monitor?
What does all do in python?
On what levels can you manage the settings from the Settings menu?
What is restful api in android?
cash sales and credit sales both are asset or liability?
How to move from one page to another in java swing?
What does star mean in excel?