A variable of a non-primitive type doesn't contain the value directly; instead, it is a reference (similar to a pointer) to an object. (It is not possible in Java to create user-defined value types). Java has eightprimitive types: byte , short , int , long , char , boolean , float and double

No comments:
Post a Comment