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 9290In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 7284When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 10065Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
3057Post New Cap Gemini Java J2EE AllOther Interview Questions
What are the some differences between 7.x and 8.x version of datastage?
What is the purpose of tax liability?
How to calculate the load of partion in flat slab if we use brick?
why swityard is necessrry requirement in any bis power distributin systems?
What is a ngmodule?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
What is m_dump?
Name some important directories that you need to take a back-up of while upgradation and restoring process?
What is the use of time zone property in splunk?
When a Static Constructor called in .NET?
Can you define parquet file?
What software do hackers use?
What is the name of the dll that contains the ajax control toolkit?
Why c++ is so important?
What about Service accounts?