Java Extension Packages
import
Packages
package package_path.package_name
Common Extensions
java.awt, java.io, java.lang, java.util, javax.swing
Data Types
boolean, char, byte, short, int, long, float, double, String
Comments
//Single line Comment
/*Multiple line Comment*/
Arithmetic Operation
+(Addition), -(Subtraction), *(Multiplication), /(Division), %(Modulus)
Equality Operators
== (Equal To), != (Not Equal)
Relational Operators
> (Greater Than), < (Less Than), >= (Greater Than or Equal To), <=(Less Than or Equal To)
In-/Decremental Operators
++x(PreIncrement), x++(PostIncrement), --x(PostIncrement)
Logical Operators
&&(PreIncrement), X++(PostIncrement), --x(PreDecrement), x--(PostDecrement)
Escape Sequence
\n (newline)
\t (horizontal tab)
\r (carraige return)
\\ (backslash)
\" (double quote)
Other
?: (Conditional)
= (Assignment)
If Else
if(
}
else{
}
Switch Case
switch(
case
No comments:
Post a Comment