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

Hi rama devi,u are written the answer is ok but not clear
i given one example of this

what i am saying is the static methods are not overriden
cause the class loader will load the while loading the
class at runtime so the compiler will check the which
static method would i need to call co its confused thas's
why the static methods are not overriden.

EXAMPLE:

class A {
static void something () {}
}

class B extends A {
static void something () {}
}

....
A anA = new B ();
anA.something ();

think and compile what's the comipler say's.

Is This Answer Correct ?    18 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a clone?

1004


How messaging services are done, before release of JMS?

2074


Why do threads block on i/o?

1182


What is the purpose of the wait(), notify(), and notifyall() methods?

973


Explain the steps in details to load the server object dynamically?

5062


What classes of exceptions may be caught by a catch clause?

977


What are JTA/JTS and how they used by client?

2175


What are the different class loaders used by jvm?

1049


What is the difference between the session.get() method and the session.load() method?

1039


what are memory considerations of jsp compares to other web components?

6465


How to implement RMI in Java?

2832


Name three subclasses of the component class?

1045


Why is actionform a base class rather than an interface?

1002


What is the relationship between the canvas class and the graphics class?

983


what is a non-repeatable read?

2320