KEMBAR78
Wa0004. 2 | PDF | Method (Computer Programming) | Java (Programming Language)
0% found this document useful (0 votes)
34 views1 page

Wa0004. 2

Uploaded by

jayaramisd
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)
34 views1 page

Wa0004. 2

Uploaded by

jayaramisd
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/ 1

Object Oriented Programming Through Java Lab -- (23A05303P)

S.no Exp Name of the experiment Page no Date signature


1 a) Write a JAVA program to display default value of all primitive datatype of 3-4
JAVA
b) Write a javaprogram that display the roots of a quadratic equation ax2+bx+c 5-6
=0. Calculate the discriminate D and basing on value of D, describe the
nature of root.
2 a) Write a JAVA program to search for an element in a given list of elements 7-9
using binary search mechanism
b) Write a JAVA program to sort for an element in a given list of elements 9-11
using bubble sort
c) Write a JAVA program using StringBuffer to delete ,remove character. 11-12
3 a) Write a JAVA program to implement class mechanism. Create a class, 12-13
methods and invoke them inside main method.
b) Write a JAVA program implement method overloading. 13-14
c) Write a JAVA program to implement constructor. 14-15
d) Write a JAVA program to implement constructor overloading. 15-16
4 a) Write a JAVA program to implement Single Inheritance 17
b) Write a JAVA program to implement multilevel Inheritance 18-19
c) Write a JAVA program for abstract class to find areas of different shapes 19-21
5 a) Write a JAVA program give example for “super” keyword. 21-22
b) Write a java program to implement interface. what kind of inheritance can be 23-24
achieved?
c) Write a JAVA program that implements Runtime polymorphism 24-25
6 a) Write a JAVA program that describes exception handling mechanism 25-26
b) Write a JAVA program Illustrating Multiple catch clauses 26-27
c) Write a JAVA program for creation of Java Built-in Exceptions 28-29
d) Write a JAVA program for creation of User Defined Exception 29-31
7 a) Write a JAVA program that creates threads by extending Thread class. First 31-35
thread display “Good Morning “ every 1 sec, 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 () 35-37
c) Write a Program illustrating Daemon Threads. 37-38
d) Write a JAVA program Producer Consumer Problem 38-41
8 a) Write a JAVA program that import and use the user defined packages 41-43
b) Without writing code, Build a GUI that display text in label and image in an 43-44
ImageView (use JavaFX)
c) Build a Tip Calculator app using several JavaFX components and learn how 45-47
to respond to user interactions with the GUI
9 a) Write a java program that connects to a database using JDBC 47-48
b) Write a java program to connect to a database using JDBC and insert values 48-50
into it.
c) Write a java program to connect to a database using JDBC and delete values 50-51
from it
Programs beyond the syllabus
10 a Write a Java program to perform basic Calculator operations 51-53
b Write a Java Program to reverse the letters present in the given String 53-54

Object Oriented Programming Through Java Page 2

You might also like