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 threadfactory?

1077


What is the difference between RMI and Corba?

2729


what is the use of State Factories?

2378


What is the relationship between an event-listener interface and an event-adapter class?

1111


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

1131


What class is used to create Server side object ?

2223


What is the relation between the infobus and rmi?

986


Is the ternary operator written x : y ? Z or x ? Y : z ?

1091


Can I map more than one table in a cmp?

1064


What class is the top of the awt event hierarchy?

1092


What is difference between object state and behavior?

1082


what is an isolation level?

2742


What is glasgow?

1035


What are callback interfaces?

1080


Can you control when passivation occurs?

1050