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

What is the difference between RMI registry and OS Agent?

1085


how i secure my site with the https protocol.what are the steps?

2287


Can I have an action without a form?

1066


Why do threads block on i/o?

1194


Do I have to use jsps with my application?

989


How are the elements of a borderlayout organized?

1062


What are local interfaces? Describe.

1169


Describe, in general, how java's garbage collector works?

999


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

1006


How are the elements of a cardlayout organized?

1039


What is the immediate superclass of the applet class?

1040


What if the static modifier is removed from the signature of the main method?

1200


What happens when a thread cannot acquire a lock on an object?

989


What is colon_pkg_prefixes and what is its use?

2471


How to pass parameters in RMI?

2228