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 do you mean by Socket Programming?

1137


Name three subclasses of the component class?

1161


What class is used to create Server side object ?

2313


How are commas used in the intialization and iteration parts of a for statement?

1145


Can you give me a simple example of using the requiredif validator rule?

1184


What are transaction attributes?

1161


What restrictions are placed on the location of a package statement within a source code file?

1156


What is the difference between the ‘font’ and ‘fontmetrics’ class?

1209


Are enterprise beans allowed to use thread.sleep()?

1196


What is a class loader? What are the different class loaders used by jvm?

1158


What does module-relative mean?

1230


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

1100


Brief description about local interfaces?

1332


what are the advantages of JTA over JTS?

2286


Explain the difference between object state and behavior?

1117