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

What are predicates in java 8?

1010


What is a lock or purpose of locks in java?

1017


What are abstract methods in java?

1110


What occurs when an object is constructed?

989


What is a for loop in java?

1034


What is the list interface?

1070


What is a map? What are the implementations of map?

1087


What is maximum size of arraylist in java?

1017


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

1426


What is a short in java?

1033


What is the difference between && and & in java?

1074


What is high level language in computer?

1016


How do you compare characters in java?

976


Explain the difference between runnable and callable interface in java?

1040


What is a percentage sign called?

1113