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 9478In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 7391When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 10155Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
3095Post New Cap Gemini Java J2EE AllOther Interview Questions
What is the shortcut to copy format in excel?
How do I create an elastic ip on aws?
What is a Record Owner?
What are concurrency strategies?
How to extend a bo?
How would you create properties by using class Builder Wizard?
Explain the winrunner testing process?
Is it possible to break netlibs encryption?
What is the use of operating unit, while configure multiorg?
How to make a array as a stack using javascript?
What is eventemitter angular2?
Which is better setter or constructor injection?
is it possible to change the background color of job designer in Talend?
Is html considered coding?
What is the size of time_t?