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

Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang>

Answer Posted / rakesh

Overloading class has different returntype.
overloading comes with in class but overriding comes in two
classes.
Overloading is resolved at compiletime
Overriding is resolved at runtime.

Is This Answer Correct ?    39 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a base64 decoder in java8?

1063


Can we override the private methods?

1012


What are new features introduced with java 8 ?

995


How would overload a function based on return type?

973


How to sort elements in a parallel array in java?

899


What is the difference between equals() and?

1195


Does sprintf add a null terminator?

1102


Define how does a try statement determine which catch clause should be used to handle an exception?

1168


What is the use of inner class?

1046


What is a null check?

1014


What is the lifetime and scope of a variable?

1020


Can It is possible to synchronize the constructor of a Java Class?

1133


What is functional interface in javatpoint?

1053


What is an example of a boolean?

1066


What is main string [] args?

993