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 9056In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 7125When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 9949Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
2993Post New Cap Gemini Java J2EE AllOther Interview Questions
what is difference between line differential and transformer differential?
what are prefix dereferencer and list them out?
Write the properties of linear convolution.
Why negative feedback is preferred in the control system?
Is it possible to create trigger on views?
What Do You Know About the Term at Par in Issuance Shares?
What is a questionnaire example?
Compare cloud and on-premise computing?
hi this is ravi , i was short listed in hal assistant engineer, now im going for interview can anybody help how is the interview for mechanical stream very urgent if anybody knows forward to me my mail id i.ravibabu2@gmail.com
To allow an element to be accessed using a unique key which .NET collection class is used ?
why did you leave your current job?
Is spark an etl?
How do I limit the number of oracle database connections generated by weblogic server?
What is Managed account and where it is used?
WHAT DO YOU WANT TO ACHIEVE IN YOUR LIFE IN MANAGEMENT FIELD?