Ad - Java Lab Manual 2021-22
Ad - Java Lab Manual 2021-22
Enrollment No. :
Mr./
Miss______________________________________________ofDi
ploma Computer Engineering Semester 6th, Enrollment No
____________________ has satisfactorily completed his/her term
work in ADVANCE JAVA PROGRAMMING (3360701)for the term
ending in__________________.
PRACTICAL – 1
AIM: Write an applet that draws a circle. The dimension of the applet
should be 500 x 300 pixels. The circle should be centered in the
applet and have a radius of 100 pixels. Display your name
centered in a circle.( using drawOval() method).
Output:
Signature of staff
PRACTICAL – 2
AIM: Draw ten red circles in a vertical column in the center of the
applet.
Output:
PRACTICAL – 3
AIM: Built an applet that displays a horizontal rectangle in its center.
Let the rectangle fill with color from left to right.
Signature of staff
Output:
Signature of staff
PRACTICAL – 4
AIM: Write an applet that display the position of the mouse at the upper
left corner of the applet when it is dragged or moved. draw a
10x10 pixel rectangle filed with black at the current mouse
position.
Output:
Signature of staff
PRACTICAL – 5
AIM: Write an applet that contains one button. Initialize the labelon the
button to “start”, when the user presses the buttonchange the
label between these two values each time the button is pressed.
Output:
Signature of staff
PRACTICAL – 6
AIM: Write an applet that uses the mouse listener, which overrides only
two methods which are mousePressed and mouseReleased.
Output:
PRACTICAL – 7
AIM: Write a program that has only one button in the frame,clicking on
the button cycles through the colors: red->green->blue-> and so
on.one color change per click.(usegetBackGround() method to get
the current color).
Output:
PRACTICAL – 8
AIM: Write an applet that contains three check boxes and 30 x 30pixel
canvas. The three checkboxes should be labeled “Red”,”Green”,
Output:
PRACTICAL – 9
AIM: Create an application that displays a frame with a menubar.When
a user selects any menu or menu item, display that selection on a
text area in the center of the frame.
Output:
PRACTICAL – 10
AIM: Write an applet that draws two sets of ever-decreasing rectangles
one in outline form and one filled alternately in red and green.
Output:
PRACTICAL – 11
AIM: Write a database application that use any JDBC driver.
Output:
PRACTICAL – 12
AIM: Develop a UI that performs the following SQL operations:1)Insert
2)Delete 3)Update.
Output:
Output:
Output:
PRACTICAL – 13
AIM: Write a program to present a set of choice for user to select a
product & display the price of product.
Output:
PRACTICAL – 14
AIM: Write a simple servlet program which maintains a counter for the
number of times it has been accessed since its loading, initialize
the counter using deployment descriptor.
Output:
PRACTICAL – 15
AIM: Create a form processing servlet which demonstrates use of
cookies and sessions.
Output:
Output:
PRACTICAL – 16
AIM: Write a simple JSP program for user Registration & thencontrol
will be transfer it into second page.
.
Output:
PRACTICAL – 17
AIM: Write a simple JSP program for user login form with static&
dynamic database.
Output:
PRACTICAL – 18
AIM:Write a JSP program to display the grade of a student by
accepting the marks of five subjects.
Output: