M.A.M.
SCHOOL OF ENGINEERING
(An Autonomous Institution)
Accredited by NAAC | Approved by AICTE-New Delhi | Affiliated to
Anna University-Chennai
B.E / [Link]. PRACTICAL EXAMINATIONS, APRIL/MAY 2026
DEPARTMENT OF COMPUTER SCIENCE AND ENGNEERING
SUBJECT NAME: JAVA PROGRAMMING LAB
SUBJECT CODE: 24CS405
DATE: 27.4.26
SESSION : FN\AN
SET -1
[Link] EXPERIMENTS BT
LEVEL
Write a Java program to demonstrate implementing an interface
1 K3
Write a Java program to practice using String
2 class and its methods. K3
3 Write a java program to demonstrate Packages. K3
Write a program to demonstrate use of
4 K3
implementing interfaces.
5 Write a java program to demonstrate threads. K3
Write a Java program to demonstrate the use of String class and
its methods
6 K3
(length(), charAt(), substring(), equals(), compareTo(),
toUpperCase(), toLowerCase()).
7 Write a Java program to check whether a given string is a K3
palindrome or not.
8 Write a Java program to demonstrate StringBuffer and K3
StringBuilder classes.
9 Write a Java program to create a user-defined package and access K3
it from another class.
Write a Java program to demonstrate built-in packages such as
10 [Link] and [Link]. K3
Develop a simple JDBC application to store the details of an
employee in a table and retrieve it and display it in the console
11 Design a Web page which contains information regarding your K3
college which contains tables, lists and hyperlinks. (Must use
attributes)
M.A.M. SCHOOL OF ENGINEERING
(An Autonomous Institution)
Accredited by NAAC | Approved by AICTE-New Delhi | Affiliated to
Anna University-Chennai
B.E / [Link]. PRACTICAL EXAMINATIONS, APRIL/MAY 2026
DEPARTMENT OF COMPUTER SCIENCE AND ENGNEERING
SUBJECT NAME: JAVA PROGRAMMING LAB
SUBJECT CODE: 24CS405
DATE: 27.4.26
SESSION : FN\AN
a. Write a TCP/IP Socket program to send the contents of a file
from server to client.
12 K3
b. Design a HTML page for railways which contains link for a
reservation and viewing various train details
a. Develop a applet which listens for events of buttons
13 b. Develop a Web page which contains information regarding a K3
bookshop using frames, tables, lists and basic HTML tags
a. Write a UDP Socket program to send a message from server to
client.
14 K3
b. Design a HTML form for filling a biodata of a person and on
submission of a form a welcome message must be displayed
Write a java program to calculate the area of 3 geometric objects
15 K3
operations using the concept of method overloading
Install Tomcat Server. Create a table which should contain at least
the following fields: name, password, emailid, phone number
Write a JSP to connect to that database and extract data from the
16 K3
tables and display them. Insert the details of the users who
register with the web site, whenever a new user clicks the submit
button in the registration page.
Write a JSP which does the following job: Insert the details of the
3 or 4 users who register with the web site by using registration
17 form. Authenticate the user when he submits the login form using K3
the user name and password from the database and display the
message “successfully logged in”.
Write a JSP Program store and retrieve images and file from the
18 K3
database.
Write a GUI program that use button to move the message to the
19 left and right and use the radio button to change the color for the K3
message displayed
Write a program that displays the color of a circle as red when the
20 mouse button is pressed and as blue when the mouse button is K3
released
M.A.M. SCHOOL OF ENGINEERING
(An Autonomous Institution)
Accredited by NAAC | Approved by AICTE-New Delhi | Affiliated to
Anna University-Chennai
B.E / [Link]. PRACTICAL EXAMINATIONS, APRIL/MAY 2026
DEPARTMENT OF COMPUTER SCIENCE AND ENGNEERING
SUBJECT NAME: JAVA PROGRAMMING LAB
SUBJECT CODE: 24CS405
DATE: 27.4.26
SESSION : FN\AN
SET-2
[Link] EXPERIMENTS BT
LEVEL
Write a Java program to demonstrate implementing an interface.
1 K3
K3
2 Write a Java program to demonstrate extending an interface.
K3
3
Write a Java program to implement multiple interfaces.
K4
4
Write a Java program to demonstrate abstract class vs interface.
K3
Write a Java program to demonstrate method overriding using
5
interface implementation.
K3
6 Write a Java program to create a thread by extending the Thread
class.
K3
7 Write a Java program to create a thread by implementing the
Runnable interface.
K3
8
Write a Java program to demonstrate thread life cycle.
K3
9
Write a Java program to demonstrate thread synchronization.
K3
10 Write a Java program to demonstrate inter-thread communication
using wait() and notify().
Write a java program to find the roots of a quadratic equation using K3
interface and packages.
11
• Declare a interface in package Quad1
• Declare another package Quad2 and implement the interface
12 Write a java program to perform the following operations based K4
upon the choice entered by the user.
M.A.M. SCHOOL OF ENGINEERING
(An Autonomous Institution)
Accredited by NAAC | Approved by AICTE-New Delhi | Affiliated to
Anna University-Chennai
B.E / [Link]. PRACTICAL EXAMINATIONS, APRIL/MAY 2026
DEPARTMENT OF COMPUTER SCIENCE AND ENGNEERING
SUBJECT NAME: JAVA PROGRAMMING LAB
SUBJECT CODE: 24CS405
DATE: 27.4.26
SESSION : FN\AN
1. Reading input from a file(f1) and displaying it in the console
Write a java program to solve producer consumer problem which K3
13
generates characters using threads.
Write a java program Design a HTML page which contains K3
information of a library using tables with its attributes, a form for
14
issuing a book to students and use various type of lists to display the
book details
Write a java program Design n a HTML form for filling a biodata K3
15 of a person and on submission of a form a welcome message must be
displayed
M.A.M. SCHOOL OF ENGINEERING
(An Autonomous Institution)
Accredited by NAAC | Approved by AICTE-New Delhi | Affiliated to
Anna University-Chennai
B.E / [Link]. PRACTICAL EXAMINATIONS, APRIL/MAY 2026
DEPARTMENT OF COMPUTER SCIENCE AND ENGNEERING
SUBJECT NAME: JAVA PROGRAMMING LAB
SUBJECT CODE: 24CS405
DATE: 27.4.26
SESSION : FN\AN
PRACTICALEXERCISES:
S.N Topic CO BTL
O
1 Write a Java Program to demonstrate CO1 K3
constructors.
2 Write a Java program to practice using CO1 K3
String class and its methods.
3 Write a java program to demonstrate CO2 K3
Packages.
4 Write a program to demonstrate use of CO2 K3
implementing interfaces.
5 Write a java program to demonstrate CO2 K3
threads.
6 Write a java to implementing thread using CO2 K3
runnable interface.
7 Install Tomcat Server. Create a table which CO3 K3
should contain at least the following fields:
name, password, emailid, phone number
Write a JSP to connect to that database
and extract data from the tables and
display them. Insert the details of the
users who register with the web site,
whenever a new user clicks the submit
button in the registration page.
8 Write a JSP which does the following job: CO3 K3
Insert the details of the 3 or 4 users who
register with the web site by using
M.A.M. SCHOOL OF ENGINEERING
(An Autonomous Institution)
Accredited by NAAC | Approved by AICTE-New Delhi | Affiliated to
Anna University-Chennai
B.E / [Link]. PRACTICAL EXAMINATIONS, APRIL/MAY 2026
DEPARTMENT OF COMPUTER SCIENCE AND ENGNEERING
SUBJECT NAME: JAVA PROGRAMMING LAB
SUBJECT CODE: 24CS405
DATE: 27.4.26
SESSION : FN\AN
registration form. Authenticate the user
when he submits the login form using the
user name and password from the
database and display the message
“successfully logged in”.
9 Write a JSP Program store and retrieve CO3 K3
images and file from the database.
10 Write a GUI program that use button to CO4 K3
move the message to the left and right
and use the radio button to change the
color for the message displayed.
11 Write a program that displays the color of CO5 K3
a circle as red when the mouse button is
pressed and as blue when the mouse
button is released