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

Objects or references which of them gets garbage collected?

915


What is entry set in java?

1027


can used Protected Class outside Function.?

1055


Why is java so important?

1064


Write java program to reverse string without using api?

981


How are this() and super() used with constructors in java programming?

1015


Why runnable interface is used in java?

1054


What is constructor in java ?

1116


How do you override a method?

957


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

1069


What is the maximum size of list in java?

910


What are different access specifiers in java? Explain

1056


In a class implementing an interface, can we change the value of any variable defined in the interface?

1023


is there a separate stack for each thread in java? : Java thread

929


What is the internal implementation of set in java?

881