Java Prac OCT2023
Java Prac OCT2023
PROGRAMMING IN JAVA
QUESTION BANK
1. (a) Write a Java program to generate random numbers and order them in ascending order.
(b) Write a Java program and establish database connectivity with the access backend creating an employee
table with following five records.
3. (a) Write a Java program to generate a vector and display 4 employees name in a company. Also display the
name of the Senior most employee and junior most employee of the company.
(b) Create an applet incorporating graphics and display straight line and oval.
4. (a) Write a Java program to demonstrate point class and its manipulation.
(b) Create an applet incorporating graphics and display a filled Arc and a filled round rectangle.
6. (a) Write a Java program and establish database connectivity with the access backend creating a student table.
7. (a) Write a Java program and establish database connectivity with the access backend creating a customer table
4 records.
(b) Create an applet displaying a filled arc on the screen with background color to be yellow.
(b) Create an applet displaying the string “JUSTICE BASHEER AHMED SAYEED COLLEGE FOR WOMEN” in green
color and with back ground color to be blue.
9. (a) Write a Write a Java program and establish database connectivity with the access backend creating a
customer table with the following 5 records.
(b) Create an applet demonstrating different fonts with font size = 25, and font style to be Time New Roman.
10.(a) Write a java application to count the number of vowels, consonants, digits and white spaces is the string
“I love my Country”.
(b) Create an applet displaying a line and an oval on the screen with background color to be green.
11. (a) Write a Java program for creating and using a package with package name COMPSCIENCE.
(b) Create an applet displaying a line and a filled round rectangle on the screen with background color to be
orange.
13. (a) Write a Java program and establish database connectivity with the access backend creating a employee table.
(b) Create an applet displaying the text “I Love India” with background color green on the screen.
14. (a) Write a java application establishing database connectivity with 4 records in the student table in the
backend.
15. (a) Create an applet and display various shapes using methods in Graphics class.
(b) Write a Java program demonstrating point class.
16. (a) Write a java application to accept a string and count the number of vowels in the string.
(b) Write a java program to demonstrate exception handling.
17. (a) Write a java code demonstrating the creation and usage of packages.
(b) Write a Java program and establish database connectivity with the access backend creating a student table.
18. (a) Write a java application to accept a string and using a char array counting the number of vowels , digits and
spaces.
(b) Create an applet demonstrating colors with background color to be black and text color be be yellow.