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 7035In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 5932When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 8940Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
2530Post New Cap Gemini Java J2EE AllOther Interview Questions
Why is transistor called a current controlled device ?
When configuring sqlnet on the client what files need to be set up?
In a KSDS file, key is missing for one record. How to insert the key for that particular record from back up file. Is there any sorting needed for the back up file before the key insertion?
What is the Automation Anywhere Report Designer file extension?
How to call c function from r?
How to activate different hints for each cell in a grid?
What is the importance of updatepanel control?
abbreviation for CHAT?
In ics the substrate is not employed as collector. Explain why?
How to delete user from salesforce? : salesforce admin
Do vs while c#?
How do I remove duplicate rows from a table in sybase?
What is clause?
Can excel be a database?
re: when i am posting insharecapitalpaid i received one message that is there is no item is assigned to this account (bankaccount)/company code