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 we override static methods?

Answer Posted / rambabu

Yes, We can! see Below---
public class Final1 {
public static void mone() {
System.out.println("Iam in final method of
super class");
}
}
public class Final extends Final1{

public static void mone() {
System.out.println("Iam in final method of
sub class");
}
public static void main(String a[]) {
Final f = new Final();
f.mone();
}

}

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you extend singleton class?

1111


Why do we use return statement?

1048


Can list contain null in java?

1092


Explain about features of local inner class?

1136


whatis Home interface and Remoteinterface? with example?

2011


What happens if we don’t override run method ?

1008


What is a copy constructor in java?

1131


Difference between comparator and comparable in java?

1104


What is default locale java?

1126


What is the default access specifier for variables and methods of a class?

1207


Explain importance of finally block in java?

1043


What is the purpose of an interface?

1047


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

1012


What is a parameter in matrices?

1062


What are the advantages of exception handling?

1066