Sabtu, 18 Februari 2017

A list of all the Primitive Data types in java programming

byte: The smallest integer type available in Java is byte. Its size is 8 bits and can store values within the range -128 to 127. byte data type can be useful while working with a stream of data over a network or a file. Declaring variables of the type byte is as shown below: byte a, b; short: Perhaps the least used integer type in Java is short. Its size is 16 bits and it can store values within the range -32,768 to 32,767. Declaring variables of the type short is as shown below: short s; int: Most widely used type for working with integers in Java

The post A list of all the Primitive Data types in java programming appeared first on Coding Security.


A list of all the Primitive Data types in java programming
read more

Tidak ada komentar:

Posting Komentar