Professional Documents
Culture Documents
Literal
primitive = primitive
Wrappers = primitive
primitive = Wrappers ----------------
Variable
Literal ////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////
primitive to primitive
int literal
byte = int (-128 ) to 127 | compile error -> byte casting
long = int (-2 31) to (2 31 -1) | compile error -> long casting
float = int (-2 31) to (2 31 -1) | compile error -> float casting
double = int (-2 31) to (2 31 -1) | compile error -> double casting
char literal
byte = char as above until char value == to char limit
short = char
char = char
int = char
long = char
float = char
double =char
long literal
byte = long compile error -> byte casting
float literal
byte = float compile error -> byte casting
double literal
byte = double compile error -> byte casting
Wrappers <-
primitive /////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
int literal
Byte = int
same as primitive to primitive literal int
Character = int
Short = int
Integer = int
======================================================
Long = int compile error -> long casting
char literal
Byte = char
Short = char
Character = char
Long = char
Float = char
Double = char
long literal
float literal
double literal
primitiveVariable to
primitiveVariable ///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////
equal to primi vari = wrapper vari
byte variable
byte = byteVariable
short = byteVariable
int = byteVariable
char = byteVariable compile error others can | char -> casting
long = byteVariable
float = byteVariable
double = byteVariable
short variable
char variable
int variable
long variable
float variable
double variable
Wrapper variable =
primitiveVariable /////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
byte variable
Byte = shortVariable
Short = shortVariable only can others by casting
Integer = shortVariable
Character = shortVariable
Long = shortVariable
Float = shortVariable
Double = shortVariable
char variable
Byte = charVariable
Short = charVariable
Integer = charVariable
Character = charVariable only can others by casting
Long = charVariable
Float = charVariable
Double = charVariable
int variable
Byte = intVariable
Short = intVariable
Integer = intVariable only can others by casting
Character = intVariable
Long = intVariable
Float = intVariable
Double = intVariable
float variable
Byte = floatVariable
Short = floatVariable
Integer = floatVariable
Character = floatVariable
Long = floatVariable
Float = floatVariable only can others by casting
Double = floatVariable
double variable
Byte = doubleVariable
Short = doubleVariable
Integer = doubleVariable
Character = doubleVariable
Long = doubleVariable
Float = doubleVariable
Double = doubleVariable only can others by casting
primitiveVariable = Wrapper
variable /////////////////////////////////////////////////////////////
////////////////////////////////////////////
equal to primi vari = primi vari
Byte wrapper
byte = ByteVariable
short = ByteVariable
char = ByteVariable Cannot
int = ByteVariable
long = ByteVariable
float = ByteVariable
double = ByteVariable
Short wrapper
Character wrapper
Integer wrapper
Long wrapper
Float wrapper
Double wrapper
byte = DoubleVariable
short = DoubleVariable
int = DoubleVariable
char = DoubleVariable
long = DoubleVariable
float = DoubleVariable
double = DoubleVariable only can
java 9 features
jshell
jpms
jlinq
http/2 client
process api update
<>
private method in interface
factory methods for immutable collections
stream enhancement
gigc
verg ann
try resource
java 8
lamda
stream
joda
static
functional
defaul
pred
funct
consum
:: con me