0% found this document useful (0 votes)
6 views4 pages

Java Object-Oriented Programming Lab

The document outlines the course structure for an Object-Oriented Programming through Java Lab at D.N.R. College of Engineering & Technology. It includes course objectives, outcomes, and a list of experiments covering fundamental concepts such as classes, inheritance, exception handling, and JDBC connectivity. Sample exercises are provided to practice various Java programming techniques and GUI development using Java FX.

Uploaded by

nandan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Java Object-Oriented Programming Lab

The document outlines the course structure for an Object-Oriented Programming through Java Lab at D.N.R. College of Engineering & Technology. It includes course objectives, outcomes, and a list of experiments covering fundamental concepts such as classes, inheritance, exception handling, and JDBC connectivity. Sample exercises are provided to practice various Java programming techniques and GUI development using Java FX.

Uploaded by

nandan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

D.N.R.

COLLEGE OF ENGINEERING & TECHNOLOGY (Autonomous)


BALUSUMUDI, BHIMAVARAM, W.G. Dist., A.P., PIN-534 202
DEPARTMENT OF INFORMATION TECHNOLOGY
L T P C
II Year- I Semester Course Code: BT24CS2104
0 0 3 1.5

OBJECT-ORIENTED PROGRAMMING THROUGH JAVA LAB

Course Objectives:
The aim of this course is to
● Practice object – oriented programming in the Java programming language
● Implement Classes, Objects,Methods, Inheritance, Exception, Runtime Polymorphism, User
defined Exception handling mechanism.
● Illustrate inheritance, Exception handling mechanism, JDBC connectivity.
● Construct Threads, Event Handling, implement packages, Java FXGUI.
Course Outcomes:
At the end of the course students will be able to
CO1: Apply control structures and operators for writing basic python programs (L3).
CO2: List various python data structure concepts and apply them to solve real world problems
(L3).
CO3: Develop functions and examine various file handling techniques and apply them to solve real
world problems (L6).
CO4: Build simple Modules used for solving real world Problems (L6).
CO5: Analyze object oriented concepts in Python (L4).
CO6: Develop, test various GUI application (L6).
PO PO PO PO PO PO PO PO PO PO1 PO1 PO1
1 2 3 4 5 6 7 8 9 0 1 2
CO 3.0 2.0 1.0 2.0 2.0 - - - - - -
2.00
1 0 0 0 0 0
CO 3.0 2.0 2.0 2.0 3.0 - - - - - -
3.00
2 0 0 0 0 0
CO 3.0 2.0 3.0 2.0 2.0 - - - - - -
2.00
3 0 0 0 0 0
CO 3.0 3.0 1.0 2.0 3.0 - - - - - -
3.00
4 0 0 0 0 0
CO 3.0 2.0 3.0 2.0 2.0 - - - - - -
3.00
5 0 0 0 0 0
CO 3.0 3.0 3.0 2.0 3.0 - - - - - -
2.00
6 0 0 0 0 0
PSO PSO
1 2
CO
3.00 3.00
1
CO
2.00 2.00
2
CO
1.00 1.00
3
CO
3.00 3.00
4
CO
1.00 1.00
5
CO
3.00 3.00
6

Experiments covering the Topics:

● Object Oriented Programming fundamentals – data types, control structures


● Classes, methods, objects, Inheritance, polymorphism,
● Exception handling, Threads, Packages, Interfaces
● Files, I/O streams, Java FXGUI

Sample Experiments:
Exercise–1:
a) Write a JAVA program to display default value of all primitive data type of JAVA
b) Write a java program that display the roots of a quadratic equation ax 2+bx=0. Calculate the
discriminate D and basing on value of D, describe the nature of root.
Exercise-2

a) Write a JAVA program to search for an element in a given list of elements using binary
search mechanism.
b) Write a JAVA program to sort for an element in a given list of elements using bubble sort
c) Write a JAVA program using String Buffer to delete, remove character.
Exercise-3

a) Write a JAVA program to implement class mechanism. Create a class, methods and invoke
them inside main method.
b) Write a JAVA program implements method over loading.
c) Write a JAVA program to implement constructor.
d) Write a JAVA program to implement construct or over loading.

Exercise-4

a) Write a JAVA program to implement Single Inheritance


b) Write a JAVA program to implement multi – level Inheritance
c) Write a JAVA program for abstract class to find areas of different shapes

Exercise-5

a) Write a JAVA program give example for “super” key word.


b) Write a JAVA program to implement Interface. What kind of Inheritance can be achieved?
c) Write a JAVA program that implements Runtime polymorphism

Exercise-6

a) Write a JAVA program that describes exception handling mechanism


b) Write a JAVA program Illustrating Multiple catch clauses
● Write a JAVA program for creation of Java Built-in Exceptions
● Write a JAVA program for creation of User Defined Exception

Exercise-7

a) Write a JAVA program that creates threads by extending Thread class. First thread display
“Good Morning“ every 1sec, the second thread displays “Hello“ every 2 seconds and the third
display “Welcome” every 3 seconds, (Repeat the same by implementing Runnable)
b) Write a program illustrating isAlive and join()
c) Write a Program illustrating Daemon Threads.
d) Write a JAVA program Producer Consumer Problem

Exercise–8

1. Write a JAVA program that import and use the user defined packages
2. Without writing any code, build a GUI that display text in label and image in an Image
View (use JavaFX)
3. Build a Tip Calculator app using several Java FX components and learn how to respond to
user interactions with the GUI

Exercise–9

1. Write a java program that connects to a database using JDBC


b) Write a java program to connect to a database using JDBC and insert values in to it.
c) Write a java program to connect to a database using JDBC and delete values from it

You might also like