Float, Character and Boolean data types

Опубликовано: 04 Октябрь 2024
на канале: java full stack training
19
like

The type float specifies a single -precision values and that uses 32 bits of storage.
Single precision faster some processors and takes half as much space as double precision. but will become imprecise when the values are either very large or very small. variable of type float are useful when you need a fractional component, but don't require large degree of precision.

double precision as denoted by the double keyword.uses 64 bits to store a value. double precision is actually faster than single precision on some modern processors that have been optimized for high speed mathematical calculations.


Char is 16 bits. java uses unicode defines a fully international character set that can represent all of the characters found in all human languages it is unification of dozens of characters sets such as latin, Greek ,Arabic,

Java has a primitive data type called boolean for logical values.It can have only one of two possible values true and false.

The type float specifies a single -precision values and that uses 32 bits of storage.
Single precision faster some processors and takes half as much space as double precision. but will become imprecise when the values are either very large or very small. variable of type float are useful when you need a fractional component, but don't require large degree of precision.

double precision as denoted by the double keyword.uses 64 bits to store a value. double precision is actually faster than single precision on some modern processors that have been optimized for high speed mathematical calculations.


Char is 16 bits. java uses unicode defines a fully international character set that can represent all of the characters found in all human languages it is unification of dozens of characters sets such as latin, Greek ,Arabic,

Java has a primitive data type called boolean for logical values.It can have only one of two possible values true and false. this is the type returned by all relational operators.


Social Links:
FaceBook   / howtolearnjava  
LinkedIn:   / suresh-bushaboina-604068189