Correct Answer : A
In order to use any variable it must be declared that is its type must be mentioned. The type of variable called the datatype helps us to know which type of data the variable can hold in it. Primitive datatype is one of the datatypes in Java. They are pre defined and named by a keyword (Eg : int
, char
etc). They are classified into 4 groups namely Integer, Floating Point, Character, Booleans. They are collectively of 8 types. These are used to create user defined datatypes such as objects which are not defined in language but are created by programmer.