in java, every variable has a type declared in the source code. there are two kinds of types: reference types and primitive types. reference types are references to objects.
in java, every variable has a type declared in the source code. there are two kinds of types: reference types and primitive types. reference types are references to objects.
the specific type of data a variable is designed to hold.   having the proper data type can be crucial in running a an error-free program.