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

What do you mean by order of precedence and associativity?

893


Explain about complier design(phases)

1023


java Technical questions asked by JPMC

4995


Why java is not 100% object-oriented?

1436


what is difference between equals and ==?

1001


Explain the access modifiers for a class, method and variables?

1095


What are the legal parameters?

942


How does sublist works in java?

902


What is a method in coding?

996


what do you mean by classloader in java?

978


What is java virtual machine? Explain

969


What is data type in java?

867


What is the difference between stream and buffer?

925


What is type conversion in java?

981


Does java isempty check for null?

947