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

How many inner classes can a class have?

1007


What is nextline method in java?

985


What is the difference between serializable and externalizable interface?

1050


How can constructor chaining be done by using the super keyword?

1051


Mention a package that is used for linked list class in java.

912


Is string a wrapper class?

981


What does flagged out mean?

1016


What are internal and external variables?

920


How big is a boolean?

985


What is the difference between Grid and Gridbaglayout?

1163


How many types of the indexof method are there for strings?

936


What is memory leak and how does java handle it?

946


What is a text string?

1039


How can you read content from file in java?

971


What methodology can be employed to locate substrings inside a string?

920