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 / arjun kumar

When we cast a reference along the class hierarchy in a
direction from the sub classes towards the root, it is an
upcast.
When we cast a reference along the class hierarchy in a
direction from the root class towards the children or
subclasses, it is downcast.

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string english?

1019


What is java used for on a computer?

1000


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

1106


When should you make a function static?

992


What are constants?

1054


What is sortedmap in java?

1036


What is the size of integer?

1094


What is not object oriented programming?

954


What does exp mean in math?

993


Difference between character constant and string constant in java ?

1026


How can we create a synchronized collection from given collection?

1085


Explain the use of shift operator in java. Can you give some examples?

978


Is void a data type?

961


What is == and === in javascript?

1061


If a variable is declared as private, where may the variable be accessed?

1062