Choose Language

Sunday, 25 November 2012

4.1 Primitive Data Types in Java

Data type defines a set of permitted values on which the legal operations can be performed.
In java, all the variables needs to be declared first i.e. before using a particular variable, it must be declared in the program for the memory allocation process. Like

 int pedal = 1;

This statement exists a field named "pedal" that holds the numerical value as 1. The value assigned to a variable determines its data type, on which the legal operations of java are performed. This behavior specifies that, Java is a strongly-typed programming language.

The data types in the Java programming language are divided into two categories  and can be explained using the following hierarchy structure :

Trending Now. . .

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by RANDJITH | Bloggerized by Randjith - Subscribe to Learn in Tamil | coupon codes