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 6393In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 5587When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 8645Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
2379Post New Cap Gemini Java J2EE AllOther Interview Questions
What is the is the default transaction factory in hibernate?
How do I find previous commands in linux?
Process technology? What package was used and how did you model the package/system? What parasitic effects were considered?
What is a Decision Table?
What are the advantages and disadvantages of air refrigeration system?
What is the difference between viewstate and hidden field in asp.net?
Write a program to upload a file in php?
explain the methodology of Data Warehousing?(Polaries)
which is the most commonly used package for data importing and manipulation?
Where is the header in microsoft word?
Differentiate between ci split and ca split?
What is regsvr32 command?
What is lazy programming?
What happens, if you have stored a password in a dataflow and create a template out of it?
WHAT IS THE SALES TAX RATIO IN RAJASTHAN ON READYMADE GARMENT AND SEMI STICH FABRIC LIKE SALWAR SUITS AND SEMI STICH DUPATTA AND TUNICS