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 Java J2EE AllOther 7637Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
Java J2EE AllOther 2662
Question { 3870 }
what are the application of compiler and interpreter for
source program
Answer
Is This Answer Correct ? | 1 Yes | 0 No |
Question { 3391 }
what is platform dependent translation and platform dependent
programming language
Answer
Is This Answer Correct ? | 1 Yes | 2 No |
Question { 4177 }
why we need this (1.object,2.class,3.data
hiding,4.encapsulation,5.abstraction,6.
polymorphism,7.inheritance)
Answer
Is This Answer Correct ? | 0 Yes | 6 No |
Question { 7760 }
Are Servlets by default thread safe or not?
thanks in advance
regards
Sudhakar
Answer
Is This Answer Correct ? | 7 Yes | 3 No |
Question { 6682 }
What is immutable class? how to make a Class explicitly
"Immutable"?Wap to make a class explicitly immutable.
Answer
Is This Answer Correct ? | 2 Yes | 0 No |
what happens if we wont use destroy()?
Answer
Is This Answer Correct ? | 20 Yes | 0 No |