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 7102In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 5982When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 8978Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
2557Post New Cap Gemini Java J2EE AllOther Interview Questions
Why do we not use inductance in lag network? Explain in detail.
Name some usages of database trigger?
How to create a new tablespace in oracle?
How do I calculate my font size?
What is smoke testing and what is sanity?
How do you reset windows explorer?
can i use hplc detector to uplc and why?
Do you know what is linq?
What is the event handling in vbscript?
What is difference between local and global temporary table?
What is a transaction server in client server environment?
You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?
What do you mean by bio ethics?
Can I still use the default connection factories supported in weblogic release 5.1? : BEA Weblogic
What are the design features involved in teradata?