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 9307In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 7296When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 10074Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
3063Post New Cap Gemini Java J2EE AllOther Interview Questions
What do you mean by the term linear regression?
How do threads work?
How do I add icon to desktop?
How can u expose a property ? What is a linked property ?
Is monoculture a system that contributes to great biological diversity of an ecosystem?
1) What is an Virtual memory? 2) How do we test API's in both Windows/Linux/Unix? 3) What is an IOCTL? 4) How do you open a char device through API's? 5) What is major num/ minor num? 6) What is the max num for minor num? 7) Who gives you the major / minor numbers? 8) Reverse a string using recursive func. 9) fork/vfork/clone. 10) What does fork returns? 11) What is a zombie process? 12) What happens when a child completes before parent tries to wait for it? 13) Interrupt handlers, top-hdnl....?
what do you mean by the field status group?
How you can convert any selenium ide tests from selenese to another language?
What is beating-up?
What are the advantages of c language?
What are the Data types in Pig?
Dis advantages of XML checkpoint ?
What is the used of !important?
What is javac_g?
Why use only splunk? Why can’t I go for something that is open source?