> Online tutorial : type in java
Showing posts with label type in java. Show all posts
Showing posts with label type in java. Show all posts

type in java

Types and Values
There are two kinds of types in the Java programming language:
1)primitive types
2)reference types
  • There are, correspondingly, two kinds of data values that can be stored in variables, passed as arguments, returned by methods,
  • There is also a special null type, the type of the expression null, which has no name.
  • Because the null type has no name, it is impossible to declare a variable of the null type or to cast to the null type.
  • The null reference is the only possible value of an expression of null type.
  • The null reference can always be cast to any reference type.