Data Type : http://cs-fundamentals.com/java-programming/java-primitive-data-types.php
Java's 8 type primitive data type
Data Type Wrapper Class( It can be return )
int Integer
long Long
boolean Boolean
string String
double Double
float Float
byte Byte
short Short
**Data Type( No return that means void )
**Wrapper Class( It can be return )
*/ Boolean literals are only two logical values:
The true literal in Java does not equal
*/ Non primitive are object.
*/ Java exception handling is managed via five keywords: try, catch, throw, throws, and finally.
Java's 8 type primitive data type
Data Type Wrapper Class( It can be return )
int Integer
long Long
boolean Boolean
string String
double Double
float Float
byte Byte
short Short
**Data Type( No return that means void )
**Wrapper Class( It can be return )
*/ Boolean literals are only two logical values:
true
and false
.The true literal in Java does not equal
1
, nor does the false literal equal 0
.
In Java, they can only be assigned to variables declared as boolean
. */ Non primitive are object.
*/ Java exception handling is managed via five keywords: try, catch, throw, throws, and finally.
Data Type | Default Value (for fields) |
---|---|
byte | 0 |
short | 0 |
int | 0 |
long | 0L |
float | 0.0f |
double | 0.0d |
char | '\u0000' |
String (or any object) | null |
boolean | false |
No comments:
Post a Comment