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?

Answers were Sorted based on User's Feedback



What is casting?..

Answer / kabita

Casting is used to convert the value from one datatype to
another datatype

Is This Answer Correct ?    7 Yes 0 No

What is casting?..

Answer / vijayakumar chinnasamy

Casting mostly used for converting value from one data type
to another data type.Mostly used for convert incompatible
data.

eg:

WRRONG
long a=20; // a is 64bit(long) data
int b=10; // b is 32 bit data.
b=a; // u r trying to assign 64bit data into 32 bit data

CORRECT
long a=20; // a is 64bit(long) data
int b=10; // b is 32 bit data.
b=(int)a; // ur converting 64bit data into 32bit data
then assign to variable b.

Is This Answer Correct ?    5 Yes 0 No

What is casting?..

Answer / janet

Casting is used to convert the value of one type to another

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

Is assembly language a low level language?

0 Answers  


What is identifier give example?

0 Answers  


Why object class is super class for every class in java?

0 Answers  


How many types of methods are there?

0 Answers  


why string constant pool in java

2 Answers   TCS,


What are latest features introduced with java 8?

0 Answers  


what is difference betweem home interface and remote interface?

0 Answers   CTS, HCL,


can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}

4 Answers  


Explain about the dynamic behavior of core java?

0 Answers  


What are the two types of streams offered by java 8?

0 Answers  


we know that every java prog must follows OOPS Principles. Anybody can answer, HOW THE FOLLOWING PROGRAM FOLLOWS OOPS CONCEPTS i.e, Inheritance,Polymarphism,Encapsulation? class a{ public static void main(String args[]){ System.out.println("Hello World"); } }

3 Answers  


What is a protected method?

0 Answers  


Categories