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 7099In 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
Mention the differences between django, pyramid and flask.
What is 8051 microcontroller ?
What are the steps required to set the policy expression?
What are default access rights in teradata? What explicit right can be given to a user?
Explain Break-fix issue?
What is difference between get and post method?
How do you view log files in sybase?
What’s the relation between instance and ami?
Explian context variables?
What is the application of Dyn1 and Dyn11 vector group of transformer?
Name some types of pathogens?
What are the roles played by packages in uml?
What are the features of javascript?
Define bootstrap.
What are the difference between arraylist and linkedlist from the perspective of sorting?