Tag: java char casting

char to short Java

October 15, 2011 · 1 min read
###### After knowing primitive data types and Java rules of [Data Type Casting (Type Conversion)](http://way2java.com/casting-operations/data-type-casting-type-conversion/), let us cast **char to short**.

char to boolean Java

October 10, 2011 · 1 min read
###### The data type **boolean** is **incompatible** for converting into any other data type. That is, a boolean value cannot be converted (or assigned to) into any other data type like char, int, double etc. The maximum permitted is one boolean can be assigned to another boolean. char to boolean is not possible.

char to byte Java

October 9, 2011 · 1 min read
###### After knowing [primitive data types](http://way2java.com/java-introduction/primitive-data-types/) and Java rules of [Data Type Casting (Type Conversion)](http://way2java.com/casting-operations/data-type-casting-type-conversion/), let us cast char to byte.