SYLLABUS AWC-FN-02
CLASS: II [Link] (CA) SEMESTER: III
SUBJECT: JAVA PROGRAMMING LAB SUBJECT CODE: 23UCCEP05
List of Lab Programs
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. Generate random numbers between two given limits using Random class and print messages
according to the range of the value generated.
5. Write a program to do String Manipulation 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) String Concatenation
b) Search a substring
c) To extract substring from given string
7. Write a program to perform string operations using String Buffer class:
a) Length of a string
b) Reverse a 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 1 second 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 1 to
10 using Thread1 and to print 90 to 100 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 Bound Exception
d) Negative Array Size Exception
Course Objectives & Outcomes
Course Objectives:
1. To gain practical expertise in coding Core Java programs
2. To become proficient in the use of AWT, Event Handling and Swing.
Course Outcomes:
1. Code, debug and execute Java programs to solve the given problems
2. Implement multi-threading and exception-handling
3. Implement functionality using String and String Buffer classes
SUBJECT INCHARGE HOD PRINCIPAL
LESSON PLAN & WORK DIARY AWC-FN-09___
Actual
Day Teaching
Proposed Topics to be Date/
[Link]. order Hour Aids Hour Remarks
Date Handled Day
used
order
Write a Java program
that prompts the user
for an integer and
1
then prints out all the
prime numbers up to
that Integer?
Write a Java program
2 to multiply two given
matrices.
Write a Java program
that displays the
3 number of characters,
lines and words in a
text?
Generate random
numbers between
two given limits
using Random class
4
and print messages
according to the
range of the value
generated.
Write a program to
do String
Manipulation using
Character Array and
perform the
5 following string
operations:
a) String length
b) Finding a
character at a
particular position
Write a program to
perform the
following string
operations using
6 String class: a) String
Concatenation b)
Search a substring c)
To extract substring
from given string
Write a program to
perform string
operations using
7 String Buffer class:
a) Length of a string
b) Reverse a string c)
Delete a substring
from the given string
Write a java program
that implements a
multi-thread
application that has
three threads. First
thread generates
random integer every
1 second and if the
8
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.
Write a threading
program which uses
the same method
asynchronously to
9
print the numbers 1
to 10 using Thread1
and to print 90 to 100
using Thread2.
Write a program to
demonstrate the use
of following
exceptions. a)
Arithmetic Exception
10 b) Number Format
Exception c) Array
Index Out of Bound
Exception d)
Negative Array Size
Exception
No. of lecture hrs. Given in the syllabus : Hours
No. of lecture hrs. Planned in the LP : Hours
Actual No. of lecture hrs. taken : Hours
Content Beyond the syllabus
Actual
Proposed Name of the Teaching
[Link]. Period Date/ Period Remarks
Date/Day Experiment Aids used
Day
1 Fibonacci Series in Java
Prime Number Program
2 in Java
Palindrome Program in
3 Java
Factorial Program in
4 Java
Armstrong Number in
5 Java
USEFUL WEB SITE
1. [Link]
2. [Link]
3. [Link]
Subject Incharge HOD Principal