OOPS With JAVA
(BCS-403)
LABORATORY MANUAL
FOR
Bachelor of Technology
In
Computer Science and Engineering
Session: 2024-2025
(Roll No: 2300951530002)
MGM'S COLLEGE OF ENGINEERING &
TECHNOLOGY
A-09, Sec-62, NOIDA, U.P
Experiment - 1
Write a program to print Hello World.
Program:
Output:
Understand OOPS Concept and Basic Java Programs
Experiment - 2
Write a Java program to illustrate the concept of inheritance
base class.
Program:
Output:
Experiment - 3
Write a program Java Program to Illustrate, Invocation of
Constructor, Calling Without Usage of super Keyword.
Program:
Output:
Abstraction In Java
Experiment - 4
Write a Java program to illustrate Abstraction.
Program:
Output:
Encapsulation in JAVA
Experiment - 5
Java Program to demonstrate Java Encapsulation.
Program:
Output:
Experiment - 6
Write a Java Program for Method overloading By using
Different Types of Arguments.
Program:
Output:
Java Interfaces
Experiment - 7
Write a java program to demonstrate how diamond problems are
handled in case of default methods.
Program:
Output:
Experiment - 8
Write a program to access Packages in java.
Program:
Exception Handling
Experiment - 9
Java Program to Illustrate Exception Handling with Method
Overriding.
Case 1:
Output:
Case 2:
If SuperClass doesn’t declare any exception and SubClass declare
Unchecked exception:
Experiment - 10
Program:
Output:
Experiment - 11
Java program to illustrate standard input output streams.
Program:
Output:
Experiment - 12
Write a Program to Implementing WebApplicationInitializer
using Spring.
Program: