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 / javachi

Casting is nothing but data type conversion.
Up casting is the conversion of data type from lower range data type to higher data type eg: int to long, byte to long, int to double etc...
Down casting is vice versa of up casting, here we do type casting from larger value to lower value,
eg: double to byte, long to int etc

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Hierarchy of exception?

1029


What is the difference between reader/writer and inputstream/output stream?

1024


Can private class be extended java?

963


What language is java written?

965


Why is whitespace important?

1018


How do you write a scanner class in java?

950


Is java still necessary?

1002


Difference between process and thread?

987


How does arraylist size increase in java?

1042


What does int [] mean in java?

970


What is the difference between declaration and definition in java?

999


What is a java applet? What is an interface?

1028


Can a class have multiple constructors?

960


Difference between throw and throws?

1045


What does replaceall do in java?

869