Skip to content

Set of all programs and their algorithms as prescribed by KTU 2019 syllabus for CSE S3 Object-Oriented Programming using Java

Notifications You must be signed in to change notification settings

Anirudh-A-V/OOP_Lab_KTU_S3

Repository files navigation

OOP_Lab_KTU_S3

Set of all programs and their algorithms as prescribed by KTU 2019 syllabus for CSE S3 Object-Oriented Programming using Java

Programs

Cycle 1

  1. Java program to check whether a given number is prime or not
  2. Java program that checks whether a given string is palindrome or not
  3. Java program to find frequency of character in a string
  4. Java program to reverse any given string
  5. Java program to find second smallest element in an array
  6. Java program to multiply 2 matrices
  7. Java program to display transpose of a matrix

Cycle 2

  1. Java program to calculate area of shapes
  2. Java program to understand inheritance
  3. Java program to understand method overriding
  4. Java program to create an abstract class
  5. Java program to illustrate interface inheritance
  6. Java program to demonstrate use of garbage collector

Cycle 3

  1. File handling in java with reader/writer
  2. Java program to read a file and display a file on screen with line number.
  3. Java program that displays the number of characters, lines and words in a text file
  4. Java program that reads data from file and writes to it by handling all file related exception
  5. Java program that uses string tokenizer

Cycle 4

  1. Java program that shows the usage of try, catch, throws and finally
  2. Java program that shows how to create a user defined exception
  3. Java program that implements a multi-threaded program
  4. Java program that shows thread synchronization
  5. Java program to create two threads
  6. Java program that shows thread priorities

Cycle 5

  1. Java program that allows user to draw lines, rectangles, and ovals
  2. Java program for handling mouse events
  3. Java program for handling key events using adapter class
  4. Java swing program to print a waveform on output screen
  5. Java program that works as a simple calculator
  6. Java program that simulates traffic light

Cycle 6

  1. Java program that implements a doubly linked list
  2. Java program that implements binary search algorithm
  3. Java program that implements quick sort algorithm
  4. Java program that implements heap sort algorithm

Note: All programs are written in Java 18.0.1 and tested on JDK 18.0.1 Note: In cycles 1, 2, & 5 internal lab exams were conducted and are separetely uploaded in the repository

How to run

  1. Clone the repository
  2. go to the directory of the program you want to run
  3. Open the terminal in that directory
  4. Type javac <filename>.java to compile the program
  5. Then type java <filename> to run the program
  6. If you want to run the program with input, type java <filename> < input.txt in the terminal
  7. If you want to run the program with output, type java <filename> > output.txt in the terminal
  8. If any Issues, feel free to open an issue or contact me at my email

Contributions

Contributions are welcome. Please open an issue or a pull request to contribute.

Star the repository if you like it. Thanks! 😄

About

Set of all programs and their algorithms as prescribed by KTU 2019 syllabus for CSE S3 Object-Oriented Programming using Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages