Java
Core Java
Language Fundamentals
1. Identifiers
class Test { //1
public static void main(String[] args){ // 2 3 4
int x = 10; // 5
}
}
// Identifiers
Test -> name of class
main -> name of method
String -> name of class
args -> name of array
x -> name of variableRules for defining Java identifiers
2. Reserved words

Keywords for datatypes
keywords for flow-control
Keywords for exception-handling
Keywords for class-related
keywords for Object-related
Keyword for grouped constants
Keywords for return type
Banned keywords
Reserved Literals
Basics







Datatypes







Performing right shift on negative numbers (Left shift and unsigned right is covered below)


Java Architecture


Operators
JVM architecture




Swap two numbers without a temp or 3rrd variable


Printing







Strings







Last updated