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 / yogesh gandhi

Neha,

I didn't get your answer.
You can overload as well as override static methods, but
only with static methods.

I have tried it and it is getting compiled.

Example is here.
*********************************************************
public class abc
{
public static void main(String args[])
{

}
public static void trss()
{

}
public static void trss(int i)
{
}

}
*********************************************************

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the “final” keyword mean in front of a variable? A method? A class?

996


What does microservices mean?

951


How do you sort an array in java?

991


Where are local variables stored?

967


Can you declare an interface method static?

1060


What is exception handling in java?

1035


Can we declare array without size in java?

1039


What is string pooling concept?

1074


What are the four integer types supported by java?

1031


What does function identity () do?

964


How do you reverse a string in java without using string buffer?

1095


What is a nullable field?

1036


What does percent mean in java?

1026


What are unchecked exceptions in java?

1038


What do you mean by synchronized non access modifier?

997