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

class A
{
public void disp(int a,int b)
{
System.out.println("hai");
}
}
class B
{
public void disp(int a,int b,int c)
{
System.out.println("hai");
}
}

above program is overloading or overriding?

Answer Posted / shereef.k

It is neither Overloading nor Overriding , because these two methods are defined in two different class, and it can make overlaoding when class B extends Class A. It can never make Overriding because the parameter list in two methods are different.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you call a reference in java?

1039


Why char array is preferred over string for storing password?

1158


What do you mean by local class?

1054


What does this mean java?

1179


What do you understand by Header linked List?

1159


can java object be locked down for exclusive use by a given thread? : Java thread

1155


Differentiate between the constructors and methods in java?

995


What is Garbage Collection in Java

1130


What does sizeof return?

1036


What is ++ a in java?

1035


What methodology can be utilized to link to a database?

1016


Can arraylist contain null values?

1070


What is the integer of 16?

1039


Write a program to reverse array in place?

1116


What is difference between synchronize and concurrent collection in java?

1125