SRI KRISHNASAMY ARTS AND SCIENCE COLLEGE
(An ISO 9001:2015 Certified Institution)
(Affiliated to Madurai Kamaraj University)
METTAMALAI, Sattur – 626203.
ACADEMIC YEAR 2024-2025(EVEN SEMESTER)
DEPARTMENT OF COMPUTER SCIENCE
Subject Name : Java Programming Lab Subject Code : SCSPC4P
Date : 04.04.2025(FN) Time : 10.00AM – 1.00PM
Class : II [Link](CS)
ATTENDANCE
[Link] Register No Name of the Students Signature
1. C3S35001 ANBU MALAR K
2. C3S35002 DIVYA P
3. C3S35003 GAYATHIRI M
4. C3S35004 GAYATHIRI R
5. C3S35006 KAVIYA SHRI N
6. C3S35007 MADHAVI V
7. C3S35008 MUNEESWARI G
8. C3S35010 MUTHU LAKSHMI M
9. C3S35014 PETCHIYAMMAL P
10. C3S35015 RAJALAKSHMI R
11. C3S35016 SANTHIYA P
12. C3S35017 SATHYA B
13. C3S35018 SUGRITHA JOYCE M
14. C3S35020 VIJAYA LAKSHMI R
15. C3S35021 ABINESH S
16. C3S35022 ANANTH SANKAR S
17. C3S35023 ARUN PANDIYAN S.A
18. C3S35024 ARUNESH PANDIYAN
19. C3S35025 AYYANAR G
20. C3S35027 BOOPATHI RAJ P
21. C3S35028 KALIRAJAN M
22. C3S35030 MOORTHI S
23. C3S35032 PRAVEEN KUMAR M
24. C3S35033 SANKARALINGAM N
25. C3S35034 SIVA GANESH V
26. C3S35035 THIRUMALAI SAMY G
27. C3S35036 VEERA MATHAN S
28. C3S35037 VEERAVEL S
29. C3S35038 VIGNESH PANDI R
30. C3S35039 VISWA S
Internal Examiner External Examiner
SRI KRISHNASAMY ARTS AND SCIENCE COLLEGE
(An ISO 9001:2015 Certified Institution)
(Affiliated to Madurai Kamaraj University)
METTAMALAI, Sattur – 626203.
ACADEMIC YEAR 2024-2025(EVEN SEMESTER)
DEPARTMENT OF COMPUTER SCIENCE
Subject Name : Java Programming Lab Subject Code : SCSPC4P
Date : 04.04.2025(FN) Time : 10.00AM – 1.00PM
Class : II [Link](CS)
PROGRAM LIST
1. Write a Java program that prompts the user for an integer and then prints out all the prime numbers up
to that Integer.
2. Write a Java program to multiply two given matrices.
3. Write a Java program that displays the number of characters,lines and words in a text.
4. Generater and om numbers between two given limits using R and om class and print messages
according to the range of the value generated.
5. Write a program to do StringManipulation using Character Array and perform the following string
operations:
a. String length
b. Finding a character at a particular position
c. Concatenating two strings
6. Write a program to perform the following string operations using String class:
a. StringConcatenation
b. Searcha substring
c. To extract substring from given string
7. Write a program to perform string operations using StringBuffer class:
a. Lengthofa string
b. Reversea string
c. Delete a substring from the given string
8. Write a java program that implements a multi-thread application that has three threads. First thread
generates random integer every 1second and if the value is even, second thread computes the square of
the number and prints. If the value is odd, the third thread will print the value of cube of the number.
9. Write a threading program which uses the same method asynchronously to print the numbers 1to10
using Thread 1and to print 90 to100 using Thread2.
10. Write a program to demonstrate the use of following exceptions.
a. Arithmetic Exception
b. Number Format Exception
c. Array Index Out of BoundException
d. [Link] Array SizeException.
11. Write a Java program that reads on file name from the user, then displays information about whether
the file exists, whether the file is readable,whether the file is writable,the type of file and the length of
the file in bytes.
12. Write a program to accept a text and change its size and [Link] bold italic options. Use frames
and controls.
13. Write a Java program that handles all mouse events and shows the event name at the center of the
window when a mouse event is fired. (Use adapter classes).
14. Write a Java program that works as a simple calculator. Use a grid layout to arrange buttons for the
digits and for the +, -,*,% operations. Add a text field to display the result. Handle any possible
exceptions like divide by zero.
15. Write a Java program that simulates a traffic light. The program lets the user select one of three lights:
red, yellow, or green with radio buttons. On selecting a button,an appropriate message
with“stop”or“ready”or “go” should appear above the buttons in a selected color. Initiallythere is no
message shown.
Internal Examiner External Examiner
SRI KRISHNASAMY ARTS AND SCIENCE COLLEGE
(An ISO 9001:2015 Certified Institution)
(Affiliated to Madurai Kamaraj University)
METTAMALAI, Sattur – 626203.
ACADEMIC YEAR 2024-2025(EVEN SEMESTER)
DEPARTMENT OF COMPUTER APPLICATIONS
Subject Name : Java Programming Lab Subject Code : SCAPC4P
Date : 03.04.2025(AN) Time : 2.00PM – 5.00PM
Class : II BCA
ATTENDANCE
[Link] Register No Name of the Students Signature
1. C3S34801 [Link]
2. C3S34802 [Link]
3. C3S34803 [Link]
4. C3S34804 [Link]
5. C3S34806 [Link]
6. C3S34807 [Link]
7. C3S34808 [Link]
8. C3S34809 [Link]
9. C3S34811 [Link]
10. C3S34813 [Link]
11. C3S34814 [Link]
12. C3S34815 MOHAMMED AFRITH RAJA
13. C3S34816 [Link]
14. C3S34817 [Link]
15. C3S34818 [Link]
16. C3S34819 [Link]
17. C3S38814 [Link]
18. C3S39819 [Link]
Internal Examiner External Examiner
SRI KRISHNASAMY ARTS AND SCIENCE COLLEGE
(An ISO 9001:2015 Certified Institution)
(Affiliated to Madurai Kamaraj University)
METTAMALAI, Sattur – 626203.
ACADEMIC YEAR 2024-2025(EVEN SEMESTER)
DEPARTMENT OF COMPUTER APPLICATIONS
Subject Name : Java Programming Lab Subject Code : SCAPC4P
Date : 03.04.2025(AN) Time : 2.00PM – 5.00PM
Class : II BCA
PROGRAM LIST
1. Write a Java program that prompts the user for an integer and then prints out all the prime numbers up
to that Integer.
2. Write a Java program to multiply two given matrices.
3. Write a Java program that displays the number of characters,lines and words in a text.
4. Generater and om numbers between two given limits using R and om class and print messages
according to the range of the value generated.
5. Write a program to do StringManipulation using Character Array and perform the following string
operations:
a. String length
b. Finding a character at a particular position
c. Concatenating two strings
6. Write a program to perform the following string operations using String class:
a. StringConcatenation
b. Searcha substring
c. To extract substring from given string
7. Write a program to perform string operations using StringBuffer class:
a. Lengthofa string
b. Reversea string
c. Delete a substring from the given string
8. Write a java program that implements a multi-thread application that has three threads. First thread
generates random integer every 1second and if the value is even, second thread computes the square of
the number and prints. If the value is odd, the third thread will print the value of cube of the number.
9. Write a threading program which uses the same method asynchronously to print the numbers 1to10
using Thread 1and to print 90 to100 using Thread2.
10. Write a program to demonstrate the use of following exceptions.
a. Arithmetic Exception
b. Number Format Exception
c. Array Index Out of BoundException
d. [Link] Array SizeException.
11. Write a Java program that reads on file name from the user, then displays information about whether
the file exists, whether the file is readable,whether the file is writable,the type of file and the length of
the file in bytes.
12. Write a program to accept a text and change its size and [Link] bold italic options. Use frames
and controls.
13. Write a Java program that handles all mouse events and shows the event name at the center of the
window when a mouse event is fired. (Use adapter classes).
14. Write a Java program that works as a simple calculator. Use a grid layout to arrange buttons for the
digits and for the +, -,*,% operations. Add a text field to display the result. Handle any possible
exceptions like divide by zero.
15. Write a Java program that simulates a traffic light. The program lets the user select one of three lights:
red, yellow, or green with radio buttons. On selecting a button,an appropriate message
with“stop”or“ready”or “go” should appear above the buttons in a selected color. Initiallythere is no
message shown.
Internal Examiner External Examiner
1. Write a Java program that prompts the user for an integer and then prints out all the prime
numbers up to that Integer.
2. Write a program to perform string operations using StringBuffer class:
a. Lengthofa string
b. Reversea string
c. Delete a substring from the given string
1. Write a Java program to multiply two given matrices.
2. Write a java program that implements a multi-thread application that has three threads. First
thread generates random integer every 1second and if the value is even, second thread computes
the square of the number and prints. If the value is odd, the third thread will print the value of
cube of the number.
1. Write a Java program that displays the number of characters,lines and words in a text.
2. Write a threading program which uses the same method asynchronously to print the numbers
1to10 using Thread 1and to print 90 to100 using Thread2.
1. Generater and om numbers between two given limits using R and om class and print messages
according to the range of the value generated.
2. Write a program to demonstrate the use of following exceptions.
a. Arithmetic Exception
b. Number Format Exception
c. Array Index Out of BoundException
d. [Link] Array SizeException.
1. Write a program to do StringManipulation using Character Array and perform the following
string operations:
a. String length
b. Finding a character at a particular position
c. Concatenating two strings
2. Write a Java program that reads on file name from the user, then displays information about
whether the file exists, whether the file is readable,whether the file is writable,the type of file and
the length of the file in bytes.
1. Write a program to perform the following string operations using String class:
a. StringConcatenation
b. Searcha substring
c. To extract substring from given string
2. Write a program to accept a text and change its size and [Link] bold italic options. Use
frames and controls.
1. Write a Java program that handles all mouse events and shows the event name at the center of
the window when a mouse event is fired. (Use adapter classes).
2. Write a Java program that prompts the user for an integer and then prints out all the prime
numbers up to that Integer.
1. Write a Java program that works as a simple calculator. Use a grid layout to arrange buttons
for the digits and for the +, -,*,% operations. Add a text field to display the result. Handle any
possible exceptions like divide by zero.
2. Write a Java program that displays the number of characters,lines and words in a text.
1. Write a Java program that simulates a traffic light. The program lets the user select one of three
lights: red, yellow, or green with radio buttons. On selecting a button,an appropriate message
with“stop”or“ready”or “go” should appear above the buttons in a selected color. Initiallythere is
no message shown.
2. Write a Java program that prompts the user for an integer and then prints out all the prime
numbers up to that Integer.