Java Notes – Complete 10 Pages
Page 1 – Introduction to Java
Java is a high-level, object-oriented programming language.
Features:
• Platform independent
• Secure
• Robust
• Multithreaded
Example:
public class Main {
public static void main(String[] args){
[Link]("Hello Java");
}
}
Page 2 – Variables & Data Types
Primitive:
byte, short, int, long
float, double
char, boolean
Reference:
String
Array
Object
Page 3 – Operators
Arithmetic: + - * / %
Comparison: == != > <
Logical: && || !
Assignment: = += -=
Example:
int a=10;
Page 4 – Control Statements
if / else
switch
Loops:
for
while
do while
break
continue
Page 5 – Methods
public static int add(int a,int b){
return a+b;
}
Concepts:
Method Overloading
Return Types
Page 6 – Arrays & Collections
Arrays:
int[] arr
Collections:
ArrayList
HashMap
HashSet
LinkedList
Page 7 – OOP Concepts
Class
Object
Inheritance
Polymorphism
Abstraction
Encapsulation
Page 8 – Exception Handling
try
catch
finally
throw
throws
Example:
try{
}
catch(Exception e){
}
Page 9 – File Handling & Streams
FileReader
FileWriter
BufferedReader
Streams:
InputStream
OutputStream
Page 10 – Advanced Java & Interview
Topics:
Generics
Collections Framework
JDBC
Multithreading
Lambda
Stream API
Spring Boot
Interview:
String vs StringBuilder
HashMap internals
JVM vs JRE vs JDK