Data Types in Java.
Data Types in Java : Data type specifies memory size and type of values that can be stored into the memory location Or Every variables in java has a data type. Data types specify the size and type of values that can be stored. There are two data types available in Java: I ] Primitive Data type II ] Non -Primitive Data type I ] Primitive(Built- in/Basic/Instrinsic/Simple) Data Types : Primitive data types are predefined by the language and named by a keyword. These data types are already hard coded into the compiler to be recognized when the program is executed. Java defines eight primitive types of data: byte, short, int, long, char, float, double, and boolean. i. Numeric Data type : Integer -->( byte ,short,int ,long ) All integer data types are signed i,e +ve or -ve . Java deos not support unsigned or only +ve integer. Floating point --> (float,double) Also known as real number. It is used for evaluating expression that require fractional p...