[go: up one dir, main page]

0% found this document useful (0 votes)
27 views2 pages

Oops With Java Lab Front and Index Page.

Uploaded by

amit.gupta2023
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)
27 views2 pages

Oops With Java Lab Front and Index Page.

Uploaded by

amit.gupta2023
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/ 2

G.

L Bajaj Group of Institutions, Mathura


Department of Computer Science & Engineering

PRACTICAL FILE
Object Oriented Programming with Java

(BCS-452)

SESSION: 2024-25

Submitted By: Submitted To:


Name: Amit Gupta Name: Er. Aditya Gupta
Roll. No: 2305110100017 Designation: Asst. Professor
Year: 2nd (IV Sem)

Branch: CSE Sec: A


INDEX

S.No. List of Experiments Page No. date Sign

1 Write a Java Program to Check Whether the number is


Prime number or not.

2 Write a Java Program to generate a Fibonacci Series.

3 Write a Java Program to convert any decimal number to


its binary equivalent.
4 Write a Java Program to Create a Class Student2 along with
two methods getData() & printData() to get the values
through argument and display the data in printData(). Create
the two objects S1 & S2 to declare and access the value from
class STtest.
5 Write a Java Program using Parameterized constructor with
two parameters id and name. While creating the objects obj1
and obj2 passed two arguments so that this constructor get
invoked after creation of obj1 and obj2.
6 Write a Java Program to generate an abstract class A and also
B inherit the class A. Generate the object for class B and
display the text “call me from B”.
7 Write a Java Program to read a file and display the content on
Screen.
8 Write a Java Program to create an Array list of collection.

9 Write a Java Program if number is less than 10 and greater


than 50 it generates the exception out of range. Else it
displays the square of a number.
10 Write a Java Program to create an Tree set collection.

You might also like