Skip to main content

Posts

Featured

Data Types in Java

Data Types are the means to identify the type of data stored in a variable. There are mainly two data types in java. 1.Primitive Data Types 2.Reference Data Types 1.Primitive Data Types:   Primitive means 'basic',these are the basic data types that are initially provided by Java are called Primitive Data Types.These  are of 4 types: i. Integral Data Types ii. Floating Data Types iii. Character Data Types iv. Boolean Data Types i. Integral Data Types:  These data types have only integer value and no floating point value or decimal value and can only hold values of whole numbers. These are of four types: byte(1 byte,8 bits):Range is -128 to +127 short(2 bytes,16 bits):Range is -32768 to +32767 int(4 bytes,32 bits):Range is -2147483648 to +2147483647 long(8 bytes,64 bits):Range is -9223372036854775808 to +9223372036854775808 [Suffix L or l] ii. Floating Data Types:   These data types have floating point value or decimal value and can hold values...

Latest Posts

Using Strings with other data types.

Using '+' with Strings

String

A java program to find the remainder of a/b.

A program to find the product of three numbers

A java program to find average of two numbers

How to fix javac is not recognized as an internal or external command,operable program or batchfile.

How to run a java program in BlueJ.

Simple Program of Java

Introduction to Java