Tag: java char

char to int Java

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

Java Primitive Data Types

May 26, 2011 · 5 min read
A **data type** informs the compiler what type of data a variable is permitted to store. Data type declaration should be done when the variable is declared. It is required in Java as Java is a [strongly typed language](http://way2java.com/java-introduction/strongly-typed-language/). The data type indicates what possible values that can be assigned to variable and possible operations that can be performed. The language system allocates **memory** to the variable on the type of data it can hold like an integer or double etc.