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 / abid mehmood

An instance method can not override the static method of
its parent class.like
if parenet class contains
public static void test()
{
}
then in child class you can't override like this

public void test(){ //you can't override
}
or even like this

public static int test(){ //compile time error:type is
incompatibe with parent's test method.
}

Is This Answer Correct ?    4 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a non-repeatable read?

2316


Explain how will the struts know which action class to call when you submit a form?

912


What is chat area? Explain.

960


What are transaction attributes?

1043


To identify IDL language what mapping mechanism is used?

3889


What is colon_pkg_prefixes and what is its use?

2462


Why use a datasource when you can directly specify a connection details?

971


What are the pros and cons of detached objects?

929


Can I map more than one table in a cmp?

1029


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

2172


Where we can write Rmi registry in the code, without having to write it at the command prompt?

2730


Difference between DurableSubscription and non- DurableSubscription?

2132


Is the session factory thread safe?

1121


How will you pass parameters in RMI? Why do you serialize?

1166


What is RMI and what are the services in RMI?

1076