JAVA CONCEPT NOTES (NPTEL EXAM)
1. Java Basics: Java is a platform-independent programming language. It uses JVM to run
programs on any system.
2. Program Execution: .java file is compiled using javac to bytecode (.class), then executed by
JVM.
3. OOP Concepts: Encapsulation (data + methods), Inheritance (reuse), Polymorphism (same
method different behavior), Abstraction (hide complexity).
4. Class vs Object: Class is blueprint, Object is instance.
5. Interface: Contains abstract methods, supports multiple inheritance, cannot create objects.
6. Exception Handling: Handles runtime errors using try, catch, finally. Checked vs Unchecked
exceptions.
7. Multithreading: Running multiple tasks simultaneously using Thread or Runnable.
8. Packages: Group of related classes for better organization.
9. Important Points: Java is case-sensitive, no pointers, main method must be static.