Answer Posted / narasimha rao bodagala
Example:
class A {
static void something () {}
}
class B extends A {
static void something () {}
}
....
A anA = new B ();
anA.something ();
so, the compiler will not check the which one is to create
or which one is called method.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
Difference between loadclass and class.forname?
How would you create a button with rounded edges?
What is the difference between a static and a non-static inner class?
what is the use of State Factories?
Why doesn’t the focus feature on the tag work in every circumstance?
What is abstract schema?
difference between ejb,struts,hibernate,spring and jsp
What is meant by method chaining?
whats is mean by connectionpooling
What is prototype?
what are RemoteObjects?
What is mdb and what is the special feature of that?
Explain ioc concept?
Can I import same package/class twice? Will the jvm load the package twice at runtime?