Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

can a static method be overridden

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


Please Help Members By Posting Answers For Below Questions

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!

1824


Difference between loadclass and class.forname?

1044


How would you create a button with rounded edges?

1145


What is the difference between a static and a non-static inner class?

1149


what is the use of State Factories?

2387


Why doesn’t the focus feature on the tag work in every circumstance?

1101


What is abstract schema?

1020


difference between  ejb,struts,hibernate,spring and jsp

2867


What is meant by method chaining?

1141


whats is mean by connectionpooling

2009


What is prototype?

1158


what are RemoteObjects?

2739


What is mdb and what is the special feature of that?

1053


Explain ioc concept?

1138


Can I import same package/class twice? Will the jvm load the package twice at runtime?

1148