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

Is the infobus client side only?

1160


What value does read() return when it has reached the end of a file?

1076


Why won’t the jvm terminate when I close all the application windows?

1298


Explain what is orm?

1147


Which component handles cluster communication in jboss?

1159


Can I run seam with jdk 1.4 and earlier?

1049


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4340


What is ripple effect?

1123


How are the elements of a borderlayout organized?

1166


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

1207


What is message driven beam?

1117


What is metaspace?

1085


To identify IDL language what mapping mechanism is used?

3984


What is meant by method chaining?

1199


Which container method is used to cause a container to be laid out and redisplayed?

1185