0% found this document useful (0 votes)
3 views3 pages

Java Programs Lab Manual

The Java Programs Lab Manual covers a comprehensive range of topics including basic Java programs, control structures, strings, object-oriented programming, arrays, recursion, exception handling, file handling, multithreading, and miscellaneous interview-level concepts. Each section contains practical examples and exercises to enhance understanding and application of Java programming. This manual serves as a valuable resource for learning and mastering Java programming skills.

Uploaded by

revanth.palthi22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Java Programs Lab Manual

The Java Programs Lab Manual covers a comprehensive range of topics including basic Java programs, control structures, strings, object-oriented programming, arrays, recursion, exception handling, file handling, multithreading, and miscellaneous interview-level concepts. Each section contains practical examples and exercises to enhance understanding and application of Java programming. This manual serves as a valuable resource for learning and mastering Java programming skills.

Uploaded by

revanth.palthi22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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

You might also like