JAVA: Summary 91
3
3
S
S
u
u
m
m
m
m
a
a
r
r
y
y
I
I
n
n
f
f
o
o
[
[
R
R
]
]
Online Compiler: https://www.tutorialspoint.com/compile_java_online.php
Q
Q
u
u
i
i
c
c
k
k
S
S
t
t
a
a
r
r
t
t
Install (Use installer or copy existing installation)
Create Console Application (Create Test.java, Compile & Run)
javac.exe (Bin Directory: Compile source Classes .java into .class files)
java.exe (Bin Directory: Run compiled .class files)
B
B
a
a
s
s
i
i
c
c
S
S
y
y
n
n
t
t
a
a
x
x
Comments //Single line comment /* Multi line comment */
Print System.out.println("Hello " + name);
Exceptions try { .. } catch(Exception e) { ... }
Statements
Conditional if, switch, VARIABLE = CONDITION ? TRUE : FALSE
Loop for, while, do
Jump break, continue, return
Operators
Comparison compare values of two variables
Arithmetic perform mathematical operations
Assignment assign value to variable
Bitwise combine bits within one or two int or long values
Logical combine boolean values that can be only TRUE or FALSE