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 5106In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 4942When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 8174Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
2052Post New Cap Gemini Java J2EE AllOther Interview Questions
name few other popular column oriented databases like hbase.
How do you use #tag?
if appointed at aryabhatt school for how long should we expect you work with us
What is the magnetic effect of the earth?
What is difference between xcode and swift?
What is grails?
What are the types of database servers?
What is the chromosome number of Ginkgoes?
What is blue ocean in jenkins?
What is joiner transformation?
How do I diff a folder?
What are access specifiers available in java?
How to disable trace http request?
What are uses of foreign key?
Why collection doesn’t extend cloneable and serializable interfaces?