4.1.Object Oriented Programming Using Java
4.1.Object Oriented Programming Using Java
CO1: Understand, and differentiate the Object Oriented concepts and Java
Programming concepts.
CO2: Apply object-oriented concepts to real-time scenarios.
CO3: Design Exception handling and multithreading mechanisms to create efficient
Course Outcomes software applications.
CO4: Analyse modern tools and collection frameworks to create Java applications to
solve real-world problems.
CO5: Design and develop GUI-based applications using swings javafx for real life
applications.
Mapping of Course Outcomes with Program Outcomes and Program Specific Outcomes
Program Outcomes and Program Specific Outcomes
Course
PO 1 PO 2 PO 3 PO 4 PO 5 PO 6 PO 7 PO 8 PO 9 PO 10 PO 11 PO 12 PSO1 PSO2
Outcome
CO1 2 2 1 3 2 2 2
CO2 2 3 2 2 2 2 2 1
CO3 3 3 2 2 2 2 2 2
CO4 3 2 2 2 2 2 2 2
CO5 3 3 3 3 3 2 3 3 3
UNIT CONTENTS HOURS
Introduction to Java: Basics of Java programming, Data types, Variables, Operators,
I Control structures including selection, Looping, Java methods, Overloading, Math class, 10
and Arrays in java.
CONCEPTS OF CLASSES AND OBJECTS: Introducing methods, Method overloading,
Constructors, Constructor overloading, Usage of static with data and method, Access
control, this key word, Garbage collection, String class, String Tokenizer.
Inheritance basics, Types of inheritance, Member access rules, Usage of super keyword,
Method overriding, Usage of final, Abstract classes, Interfaces - differences between
II abstract classes and interfaces, defining an interface, implementing interface, applying 8
interfaces, variables in interface and extending interfaces; Packages - defining, creating
and accessing a package, importing packages, access control in packages.
Collection framework: Collections Overview, Collection Interfaces - List, Set, Map, List -
III ArrayList, Linked List, Vector, Set - HashSet, TreeSet, Map - HashTable, HashMap, 8
Accessing a collection via an Iterator, comparator, comparable.
Reference Java Programming for Problem Solving: Subrata Saha and Satish Jain
Books Head First Java: Kathy Sierra and Bert Bates
e-Books/ https://greenteapress.com/wp/think-java/
Online https://math.hws.edu/javanotes/
resource
Department of Data Science
Prog 1 a) The moons gravity is about 17% that of earth. Write a program that CO1
compute effective weight on moon.
b) Write program to print first 20 squares i.e upto 400, one per line using
for loop.
c) Modify 2nd part so that it finds and displays the average of first 20
squares.
d) Write program to print various patterns :
0
12
345
6789
Prog 2 a) Write program to overload different method in such a way that one of CO2
the methods should return square of integer value and other should return
cube of double number value.
b) Write program with method overloading in such a way that method
should find area of rectangle and area of triangle with super keyword.
c) Write program for binary search using command line arguments.
Prog 3 a. Create a user defined package that contains the method to calculate the CO3
area of a circle and import this in a program to calculate the area of a
circle of any radius.
b. Create a user defined package name homebudget which contains home
expenditure and Home income class. For both the classes find a suitable
data member and its functionality. Define another class where you have to
import home budget package and find out the total savings of your family.
Prog 4 Write a program in JAVA to implement Simple queue using interface. CO3
Interface should have two variables Front and Rear, two methods for
inserting and deleting the nos.
Prog 5 Exception Handling: CO3
a) Checked, b) unchecked Exception
Prog 6 Assume that a bank maintains two kinds of account for its customers, one CO2
called savings account and the other current account. The current account
provides cheque book facility but no interest. Current account holders
should also maintain a minimum balance falls below this level; a service
charge is imposed.
Create a class Account that stores customer name, account number and
type of account. From this derive the classes Curr-acct and Sav-acct to
make them more specific to their requirement. Include the necessary
methods in order to achieve the following tasks:
a) Accept deposit from a customer and update the balance.
b) Display the balance.
G H Raisoni College of Engineering & Management
(Formerly Known as G H Raisoni Institute of Engineering &Technology, Nagpur)
An Autonomous Institute Affiliated to Rashtrasant Tukadoji Maharaj Nagpur University, Nagpur
Accredited by NAAC with “A+” Grade
Shraddha Park, B-37-39/1, MIDC, Hingna-Wadi Link Road, Nagpur-440016 (INDIA)
Prog 9 Write a program in java to create GUI application using javafx. CO5