Java Full Course - English Notes (Beginner to Advanced)
1. Introduction to Java
- High-level, object-oriented programming language by Sun Microsystems.
- Platform-independent with the help of Java Virtual Machine (JVM).
- Write once, run anywhere (WORA).
2. Java Setup
- Install Java Development Kit (JDK).
- Use IDEs: IntelliJ IDEA, Eclipse, NetBeans.
- Compile using: javac [Link]
- Run using: java ClassName
3. Basic Syntax
- Structure:
public class HelloWorld {
public static void main(String[] args) {
[Link]("Hello, World!");
- Data Types:
- Primitive: int, float, double, char, boolean
- Non-primitive: String, Arrays, Classes
4. Operators
- Arithmetic: +, -, *, /, %
- Relational: ==, !=, >, <, >=, <=
- Logical: &&, ||, !
- Assignment: =, +=, -=
5. Control Statements
- if, if-else, else-if, switch
- Loops: for, while, do-while
6. Functions (Methods)
- Declaration:
public static int sum(int a, int b) {
return a + b;
- Method Overloading supported
7. Arrays
- Single-dimensional and multi-dimensional
- Enhanced for-loop
8. Object-Oriented Programming
- Class and Object structure
- Constructor overloading
- this keyword usage
9. Inheritance
- extends keyword
- super keyword
10. Polymorphism
- Compile-time (overloading)
- Run-time (overriding)
11. Abstraction
- Abstract Classes
- Interfaces
12. Encapsulation
- private variables with public getters/setters
13. Exception Handling
- try, catch, finally, throw, throws
14. File Handling
- FileReader, FileWriter, BufferedReader
15. Packages
- package and import keywords
16. Java Collections (Brief)
- List, Set, Map, Queue from [Link]