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 9462In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 7378When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 10147Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
3092Post New Cap Gemini Java J2EE AllOther Interview Questions
What is http only cookie?
How to reset/destroy a cookie?
How to call stored procedure using http soap?
What are user defined exceptions?
What is difference between range and arange function in python?
Explain the working of manual memory management?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
What are the different types of triggers?
Explain what you understand by function overloading.
How to use clusters?
Why viewstate is not used in mvc?
Why do we use swift?
Which one is faster ienumerable or iqueryable?
How does xaml relate to xml-based web service transport protocols (xp, soap, ebxml transport)? : xaml
What is deque in the java collections framework? : java collections