Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners What is casting?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
What is casting?
1 Answer(s)      a year and 10 months ago
Posted in : Java Beginners


Hi,

What is casting?

thanks,


Advertisement
View Answers

April 16, 2013 at 4:55 PM


Hi,

There are mainly 2 types of casting in Java programming language. These are casting between primitive numeric types and casting between object references. The Casting between numeric types mostly used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to refer to an object by a compatible class, interface, or array type reference.

For more details read this article link:

http://www.roseindia.net/java/beginners/TypeCasting.shtml

Thanks,



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com