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 is the static block?

1119


Can you tell me range of byte?

1056


Is void a return type?

1019


How much ram can a 64 bit processor theoretically?

964


What is a “stateless” protocol ?

1038


What are the 3 types of control structures?

1060


What is the latest java version?

1114


Tell me a few examples of final classes defined in Java API?

1160


when you will synchronize a piece of your code? : Java thread

1070


What is ascii code?

1370


What are operators and its types?

1112


What is valid keyword in java?

1050


Is Constructor possible in abstract class in java ?

1116


What is hashset in java?

1198


What is hotjava?

1069