java datatype memory code example
Example 1: primitive and non primitive data types in java
Primitive data types are those data types which are used by programmers when creating variables in their program.
For example :-
* boolean
* char
* byte
* short
* int
* long
* float
* double
Non-Primitive data types:
* String
* array
* enum
* class
* etc
Example 2: class as a data type in java
Class Node {
Node next = null;
int data;
public Node(int d){ data = d; }
void append(int d)
{
blah blah blah
..............
}
}