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 are upcasting and downcasting?

Answer Posted / malligontla

A super class reference can be converted into a subclass
reference but this subclass reference is not useful to call
the methods of any of the classes. This convention is known
as Downcasting.

We can convert the subclass reference to a superclass
reference without using the cast operation, because compiler
will internally take care of the casting. This is known as
Upcasting.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1069


What are measurable parameters?

1086


What are different data structures in java?

1054


Can we have static methods in an interface?

1062


How do you compare arrays in java?

957


Difference between start() and run() method of thread class?

1076


is it possible to instantiate the math class?

1041


Can constructor be synchronized?

946


What is numeric data type?

998


What is meant by the value of a variable?

925


How to store image in arraylist in java?

982


What do you meant by active and passive objects?

1090


What does @override mean?

1217


How hashset works internally in java?

1104


What are the different types of constructor?

996