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 is indexof in java?

951


what do you mean by stream pipelining in java 8? Explain

985


What is a marker interface?

1103


What is getkey () in java?

973


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

1045


Are arrays primitive data types?

1114


What is a heavyweight component?

989


What is array size in java?

927


Explain 5 io best practices?

985


How many types of keywords are there?

950


What is the meaning of nullable?

980


Is it possible to compare various strings with the help of == operator?

946


What is difference between ++ I and I ++ in java?

926


What is collection class in java?

954


what are the disadvantages of indexes in oracle?

2464