The document outlines a list of experiments for the subject "Object Oriented Programming Using Java" including printing multiples of an integer, creating abstract and child classes, populating an array list with class instances, checking if a string is a palindrome, creating derived classes that inherit and override methods, implementing an interface with a method, rearranging student data by CGPA then name, reading and printing lines from a file, and handling exceptions during integer division. The experiments cover core OOP concepts like abstraction, inheritance, polymorphism, and exceptions. Student details like name, UID, and section are provided at the top for submission purposes.
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 ratings0% found this document useful (0 votes)
23 views
JAVA Index
The document outlines a list of experiments for the subject "Object Oriented Programming Using Java" including printing multiples of an integer, creating abstract and child classes, populating an array list with class instances, checking if a string is a palindrome, creating derived classes that inherit and override methods, implementing an interface with a method, rearranging student data by CGPA then name, reading and printing lines from a file, and handling exceptions during integer division. The experiments cover core OOP concepts like abstraction, inheritance, polymorphism, and exceptions. Student details like name, UID, and section are provided at the top for submission purposes.
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
UNIVERSITY INSTITUTE OF ENGINEERING
Subject Name: Object Oriented Programming Using Java
Subject Code: 21CSH218
Submitted to: Submitted by:
Faculty name: Akshima Aggrawal Name: Abhinov Kumar Roy
UID: 21BCS9952
Section: 802
Group: B Department of Computer Science & Engineering INDEX
Ex. No List of Experiments Conduct Viva Record Total Remarks/
(MM: 12) (MM: 10) (MM: 8) (MM: 30) Signature Given an integer n, print it’s first 10 multiples. 1.1 Create an abstract class book and then a child 1.2 class Mybook that extends the abstract class. Set title method is abstract too and has no body. . In this problem, we populated an array list with 1.3 several instances of classes. The code prints count of the number of instance of each class.
Given a string A, print YES if the string is
1.4 palindrome, print no otherwise
Consider the animal class has one method
2.1 walk(). Create a derived class bird that has a method fly(). Finally create a bird object that can both walk and fly.
2.2 Consider the sports class that has getname() and
getNumberOfTeamMembers(). Create soccer class that inherits from sports and override getname(). Complete the java code by writing an overridden method that prints the same statement as the super class getNumberOfTeamMembers method.
2.3 You are given an interface
AdvancedArthemetic which contains a method signature int divisor_sum(int n). you need to write a class called MyCalculator which imnplements the interface. Divisor_sum just takes an integer and returns the sum of all it’s divisors. Your class shouldn’t be public.
You are given a list of student information: ID,
3.1 Fname, CGPA. Your task is to rearrange them according to their cgpa. If they have same cgpa, according to their name…
Given a file, you have to read n lines of input
3.2 until you reach EOF then number and print all n lines of content.
Given two integers x and y as input, you have
3.3 to compute x/y. if x and y are not 32 bit signed integers or if y is zero, exception will occur and you have to report it.