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...

What is the difference between overloading and overriding a
function?

Answer Posted / praveen

Over riding also can be happens in the same class

eq :-

public void test(int i)
{
System.out.println(i);
}
public void test(String i)
{
System.out.println(i);
}

Over Loading - Compile time polymorphism
Over Riding - Run time polymorphism

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a package.

1173


Is nullpointerexception checked or unchecked?

1071


Where is java located?

1122


What is a instance variable in java?

1091


How do you start a new line in java?

1036


How many unicode characters are there?

1112


What causes memory leaks in java?

981


How to create an immutable class?

1172


What is a jit compiler?

1192


What is private static in java?

1092


How objects of a class are created if no constructor is defined in the class?

1122


What is the advantage of preparedstatement over statement?

1166


Can an interface be final?

1080


What is the meaning of variables in research?

1074


In a container there are 5 components. I want to display the all the components names, how will you do that one?

1081