Java Programs Lab Manual
1. Basic Java Programs
- Hello World
- Add Two Numbers
- Swap Two Numbers (with and without temp)
- Even or Odd
- Factorial (loop & recursion)
- Prime Number
- Palindrome Number
- Armstrong Number
- Fibonacci Series
2. Control Structures & Loops
- Largest Among Three Numbers
- Leap Year Check
- Multiplication Table
- Reverse a Number
- Number Pattern Printing
3. Strings in Java
- String Reversal
- Check Palindrome String
- Count Vowels and Consonants
- Anagram Check
- Word Frequency in Sentence
4. Object-Oriented Programming (OOP)
- Class & Object Example
- Constructor Overloading
- Method Overloading
- Inheritance Example
- Abstract Class & Method
- Interface Implementation
- Polymorphism (Compile & Run-time)
- Encapsulation
5. Arrays & Collections
- Array Sorting
- Matrix Addition / Multiplication
- Find Duplicate Elements
- ArrayList Example
- HashMap Example
- Stack / Queue Implementation
6. Recursion Programs
- Factorial using Recursion
- Fibonacci using Recursion
- GCD/LCM using Recursion
7. Exception Handling
- Try-Catch Example
- Multiple Catch Blocks
- Throw & Throws Usage
- Custom Exception Class
8. File Handling
- Read File
- Write to File
- Copy File Contents
- Count Words/Lines in File
9. Multithreading
- Thread Creation (extend Thread)
- Thread Creation (Runnable)
- Thread Synchronization
- Inter-thread Communication
10. Miscellaneous / Interview-level
- Java Applet Example
- GUI with Swing
- Bubble Sort, Selection Sort
- Linked List Implementation
- Binary Search & Linear Search