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

how we can create packages in java?

954


List down the methods and interfaces of collection class in java.

979


Why synchronization is important in java?

1041


What does indexof mean?

1017


Are variables stored in ram?

1006


Why does java does not support multiple inheritance? Explain

971


What are the advantages of functions?

915


Explain the difference between a Thread and a Process.

992


What does @override mean?

1198


how to create multithreaded program? Explain different ways of using thread? : Java thread

978


What is the tradeoff between using an unordered array versus an ordered array?

1229


List some features of the abstract class.

1053


what is the final keyword denotes in java?

1083


Which is fastest collection in java?

1075


How can you set an applet’s height and width as a percentage?

928