0% found this document useful (0 votes)
9 views2 pages

Java Practical Questions

The document outlines the practical examination tasks for the Programming in Java Lab at Bharathi Women’s Arts and Science College, Annamalai University, for March 2026. It includes various programming assignments such as generating prime numbers, matrix multiplication, string manipulation, multi-threading applications, exception handling, and file operations. Each task is designed to assess students' proficiency in Java programming concepts and techniques.

Uploaded by

priya
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)
9 views2 pages

Java Practical Questions

The document outlines the practical examination tasks for the Programming in Java Lab at Bharathi Women’s Arts and Science College, Annamalai University, for March 2026. It includes various programming assignments such as generating prime numbers, matrix multiplication, string manipulation, multi-threading applications, exception handling, and file operations. Each task is designed to assess students' proficiency in Java programming concepts and techniques.

Uploaded by

priya
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

BHARATHI WOMEN’S ARTS AND SCEINCE COLLEGE

ANNAMALAI UNIVERSITY PRACTICAL EXAMINATIONS-MAR’2026


Subject Name: PROGRAMMING IN JAVA LAB Max Marks: 75
Course Code : 23UBCAP44 Time: 3 Hrs

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 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

BHARATHI WOMEN’S ARTS AND SCEINCE COLLEGE


ANNAMALAI UNIVERSITY PRACTICAL EXAMINATIONS- MAR’2026
Subject Name: PROGRAMMING IN JAVA LAB Max Marks: 75
Course Code : 23UBCAP44 Time: 3 Hrs

1. Write a Java program that displays the number of characters, lines and words in
a text.
2. Generate random numbers between two given limits using Random class and print
messages according to the range of the value generated.
3. Write a java program that implements a multi-thread application.

BHARATHI WOMEN’S ARTS AND SCEINCE COLLEGE


ANNAMALAI UNIVERSITY PRACTICAL EXAMINATIONS- MAR’2026
Subject Name: PROGRAMMING IN JAVA LAB Max Marks: 75
Course Code : 23UBCAP44 Time: 3 Hrs
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 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
3. Generate random numbers between two given limits using Random class and print
messages according to the range of the value generated.
BHARATHI WOMEN’S ARTS AND SCEINCE COLLEGE
ANNAMALAI UNIVERSITY PRACTICAL EXAMINATIONS- MAR’2026
Subject Name: PROGRAMMING IN JAVA LAB Max Marks: 75
Course Code : 23UBCAP44 Time: 3 Hrs
1. 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.
2. Write a java program that implements a multi-thread application.
3. Write a Java program that works as a simple calculator

BHARATHI WOMEN’S ARTS AND SCEINCE COLLEGE


ANNAMALAI UNIVERSITY PRACTICAL EXAMINATIONS- MAR’2026
Subject Name: PROGRAMMING IN JAVA LAB Max Marks: 75
Course Code : 23UBCAP44 Time: 3 Hrs
1. 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
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
3. Write a Java program that displays the number of characters, lines and words in
a text.

BHARATHI WOMEN’S ARTS AND SCEINCE COLLEGE


ANNAMALAI UNIVERSITY PRACTICAL EXAMINATIONS- MAR’2026
Subject Name: PROGRAMMING IN JAVA LAB Max Marks: 75
Course Code : 23UBCAP44 Time: 3 Hrs
1. Write a java program that implements a multi-thread application
2. Write a program to accept a text and change its size and font. Include bold italic
options. Use frames and controls.
3. Write a program to perform the following string operations using String class:
 String Concatenation
 Search a substring
 To extract substring from given string

You might also like