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 7632In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?
2 6289When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?
1 9173Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
2662Post New Cap Gemini Java J2EE AllOther Interview Questions
for opening electrical shop, tips needed.
Can we load the datatable directly using sql query ?
1s it posible to Create Tables Through Querydef?
What are the steps to ensure the business stays relevant to the ai revolution?
How can you get the type of arguments passed to a function?
What is xhtml? Why xhtml?
Explain how to configure a mvg?
What are data types in .NET?
What is the mainframe testing? Categorize the mainframe manual testing?
Explain how transfer of context from main job to child job?
Is double a decimal?
Why MapReduce uses the key-value pair to process the data?
What is a Middleware Parameters ?
How can we run the graph?
Differentiate between static class and singleton instance?