You are on page 1of 3

A. V.

PAREKH TECHNICAL INSTITUTE, RAJKOT


COMPUTER DEPARTMENT
ADVANCED JAVA PROGRAMMING (3360701)

List of Practical

SR
TITLE PRACTICAL DESCRIPTION
NO

UNIT – I: JAVA APPLETS (CO1)

1 Hello World Applet Develop a java program to draw an applet of size 300x200 that
prints "Hello World" text on the Apple window.
2 Parameter Passing using Develop a java program to print the message passed using HTML
Applet file using <PARAM> Tag.
3 Concentic Circles in an Develop a java applet to draw a Rainbow (using arc).
Applet
4 Rectangles on Applet Develop a java applet to create a Chess Board.

5 Smiley using different Develop a java applet to create a Smiley Emoji with appropriate
Shapes color.
6 Shapes using Graphics Develop a Java Applet to create a House using different shapes.
Class

UNIT – II: ABSTRACT WINDOW TOOLKIT (CO2)


7 Label and TextField Develop a java applet to design a log in form having Fields
Username and Password and buttons for Log-in and Cancel.
8 Price Calculator using Create a Java applet to Enter product name in one TextField, Base
ActionEvent Price in another TextField and third TextField having rate of GST.
Place a button Calculate. Upon Clicking that the final price of the
product should be dispplayed along with the product name.
9 Frame in Applet Develop a program to launch an appplet from a Frame.

10 List Operations using Create an Applet having 2 ListBox "List1" and "List2".
ActionEvent on multiple Data can be added in "List1" using a TextField and and "Add Item"
controls button. Then we can move items between two ListBoxes using
Move to List2 and Move to List1 Buttons.
11 Frame with Close Create a frame window of 300x200 with a label of “Hello Java
Operation from Frame Window” and the frame window should close when the
Close button of the window is clicked.
12 FlowLayout Create a applet that contains "Generate" button upon clicking that it
should display number of circles entered in Textfield by user.
13 GridLayout Create a Frame using GridLayout that will generate a spiral matrix
of size eintered by user.
14 BorderLayout Create a frame of 300x200 having BorderLayout and each should
contain a button having the Label same as the name of that region.
(ex. NORTH, SOUTH, EAST, WEST, CENTER etc.)
15 CardLayout Create a frame and demonstrate CardLayout that displays list of
subjects in semesterwise Cards . ( Semester 1 - Computer
Programming,Fundamental of digital electronics) place a home
button to return to the main card.
A. V. PAREKH TECHNICAL INSTITUTE, RAJKOT
COMPUTER DEPARTMENT
ADVANCED JAVA PROGRAMMING (3360701)
SR
TITLE PRACTICAL DESCRIPTION
NO
16 MouseListener Create a frame having button with label “Click”, and implement
MouseListener on that which should display appropriate event
message on console window.
17 MouseMotionListener Create an applet which displays cursor co-ordinates on Applet
below the mouse pointer.
18 WindowListener Create an applet window and implement WindowListener on that
which should display appropriate event message on console
window according to the event performed on the window.
19 Swing Components Create a Jframe for user registration having details like Name,
Phone No, Gender, Birth Year (Using Dropdown list). Clicking on
a button Display will show all the data enterd in the form in a
Dialog Box.
UNIT – III: JAVA DATABASE CONNECTIVITY (CO3)
20 Database Connection Develop a console application to connect with the database Store
using ODBC made in Microsoft Access and display "Connection Successful"
message on console if the connection is OK using ODBC Driver.
21 Database Table Creation Write a JDBC Console application create table “Product” with
columns ID(int PK, AUTO INCREMENT), Name(varchar(60)),
Price(double) and Quantity(int) stored in MySql Databse
“Product_Data” .
22 Insert Operation Write a JDBC Console application to populate the data in “Product”
table as below, get those Data from user.
1-Watch-1200-10
2-Hat-75-50
3-Jeans-1600-23
4-Polo-900-52

23 Select operation Write a JDBC Console application to display all records of the table
“Product” having price greater than Rs. 1000.

24 Update Operation Write a JDBC Console application to update value of Quantity of


all the products to 100 having price less than 1000.
25 Delete Operation Write a JDBC console Application to delete a row by asking ID of
the Product from user and then display count of number of rows in
the database.

UNIT – IV: JAVA SERVLETS (CO4)

26 Generic Servlet Write a Generic Servlet and servlet mapping code which displays
“Hello World” string in the browser window upon running.

27 Hello World Servlet Write a servlet and servlet mapping code for simple Servlet which
displays “Hello {User}” string in the browser window where user
value is passed through deployment descriptor file.
A. V. PAREKH TECHNICAL INSTITUTE, RAJKOT
COMPUTER DEPARTMENT
ADVANCED JAVA PROGRAMMING (3360701)

SR
TITLE PRACTICAL DESCRIPTION
NO
28 Sessions & Cookies Write a servlet and servlet mapping code to for log in and welcome
page of the user containing Log Out button. Make use of Session to
load the home page. If the session is not created then the user
should automatically redirected to Log In page. Username should
be passed and a welcome message with the username should be
displayed on welcome page if the session is set. Username is to be
passed through cookie.
29 CRUD Operation on Write an application using servlet to perform CRUD operations on
MySQL from Servlet MySQL database connected to the servlet with type-4 driver. Also
apply a basic formatting in the page.

UNIT – V: JAVA SERVER PAGES (CO5)

30 Hello JSP and Date Class Create an HTML page with a textbox to enter the name of user and
Basics a button "Submit" which trasfers the control to another JSP page
and display a Hello Message with username passed from HTML
page and display the current Date and Time with it.
31 Looping and Math Class Create a JSP page which displays a table of Square root of numbers
from 0 to 16.
32 Expressions in JSP Design a JSP page and define 3 variables n1, n2 and n3 having
values 12, 13 and 15 respectively and then using Expression Tags
display the result of sum of those 3 variables.
33 Declaration Elements in Design a JSP page with a button "Click" on it and clicking on that
JSP button will give the count of how many times that button is clicked.
34 Log In Application Develop a simple JSP program for user login form with database
connectivity.

You might also like