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

There are 2 methods in a class. Both have the same method
signature except for return types. Is this overloading or
overriding or what is it?

Answer Posted / ashu_deepu

it is not overloading bcos different return types does not mean overloading.
n 4 overriding inheritance should b used between 2 classes.
so it is neither overriding nor overloading.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is floor math?

914


What is the difference between array list and vector in java?

898


what is an objects lock and which objects have locks? : Java thread

944


Is null an object java?

925


What are inner classes or non static nested classes in java?

1118


What is Mutex (Mutual Exclusion Object) ?

1078


Which class should you use to obtain design information about an object in java programming?

1034


What is nextint java?

974


What is update method called?

1089


What is += mean in java?

947


Can constructor be inherited?

976


Is main is a keyword?

945


How do you calculate square roots?

1096


Give me some null interfaces in java?

1005


What is the output of the below java program?

983