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 is meant by UP& DOWN casting in java?

Answer Posted / regalla soujanya naresh reddy

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 compiler because
it will internally take care of the casting. This is known
as Upcasting.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why we use merge option in hybernate pls give a ex snippet

2030


Can I override protected method in java?

1130


What is the purpose of skeleton and stub?

1349


Is set ordered in java?

1036


What does n mean in java?

1016


How to perform binary search in java?

1040


Can constructor return value?

1012


What is the purpose of using the java bean?

1102


What is the difference between delete and delete[]

1642


What is <> used for in java?

1168


What is tochararray in java?

991


Explain the features of java?

1067


Will minecraft java be discontinued?

1226


What is user defined exception in Java?

1132


Explain constructors and types of constructors in java.

1179