Skip to content

Latest commit

 

History

History

OOPS-With-Java

OOPS With Java

This repository contains all the OOPS With Java Lab's program in the Autonomous curriculum of Dayananda Sagar College of Engineering.

Getting Started

Several options are available to get started:

  • Clone the repo at git clone https://github.com/rishabhlakhotia/CSE-Lab-Manual
  • Fork the repository if you think you can contribute back

List of the programs

  1. Java program that prints all real solutions to the quadratic equation ax2 + bx + c = 0. Read in a, b, c and use the quadratic formula. If the discriminate b2-4ac is negative, display a message stating that there are no real solutions.

  2. Fibonacci Sequence Using Recursive and Non-Recursive Methods

  3. Java program to multiply two Matrices.

  4. Java program to illustrate functionalities of different Bitwise operators.

  5. Java program using constructors to add and subtract two complex numbers.

  6. Java program to calculate gross salary & net salary.

  7. Java program to declare an abstract class Solid and implements Cylinder, Cone and Sphere by inheriting from Solid abstract class. Compute the surface area and volume.

  8. Java program to read from console and write these data into a file, again read that file and print the content onto console.

  9. Java program to implement the interface.

  10. Java program to read a string from the keyboard and to do the following

    • Extract the middle character of the string
    • Check whether the string entered is palindrome or not
    • Count the number of vowels in the string
    • Count the total number of characters in the string.
  11. Exception Handling programs

    • Java program that implements ArrayIndexOutofBound Exception using built-in-Exception.
    • Java program to identify the significance of finally block in handling exceptions.
  12. Write a Java program that creates three threads. First thread displays “Good Morning“, every one second. The second thread displays “Hello” every two seconds and the third thread displays “Welcome” every three seconds.

Contributing

If you're having problems, or have a suggestion, please log and issue on GitHub. If you'd like to have a crack yourself, fork the repository and make a pull request.