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 the full form of jpeg?

955


What is keyset in java?

1074


Is static a singleton?

963


What is the output of the below java program?

1043


What is type safety in java?

942


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1303


Can interface be private in java?

1004


Why is stringbuffer called mutable?

980


What is early binding and late binding in java?

1176


What are the differences between Java 1.0 and Java 2.0?

2260


Why are parameters used in functions?

1009


What is nullpointerexception?

1066


Describe the term diamond problem.

1024


What is the Difference between Final Class && Abstract Class?

1069


What is singleton math?

1119