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 casting?

Answer Posted / vijayakumar chinnasamy

Casting means converting values from one data type to
other data type.For example to convert the int values to
float type vlaues.

Types of casting:
1. Downcasting -source is larger than destination type
2. upcasting - Source is smaller than destination type.

casting can be applicable to both primitive type and Object
type.

primitive type - convert numeral to floating point and vice
versa.
Object type - converting from subclass to super class or
vice versa.
superClassObj = subClassObj;

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you add null to a list java?

1106


What is structure of java heap? What is perm gen space in heap?

1185


Explain with example the concept of constant variable in java.

1263


What is not thread safe?

1039


What is the difference between integer parseint and integer valueof?

1049


What is loop in java?

1053


What is a numeric format?

1159


What are default methods ?

1107


How do you sort objects in java?

1034


Is main is a keyword?

1056


Is java still necessary?

1144


How does queue work in java?

1030


Can we clone singleton object?

1126


What is core java used for?

1206


Should database connections be singleton?

1016