ADVANCED JAVA AND J2EE LAB
INDEX
Sl. Page
PROGRAM NAME
No. No.
PART A
Write a program to convert numbers into words using Enumerations
1 with constructors, methods and instance variables.(INPUT RANGE-
0 TO 99999) EX: 36 THIRTY SIX
2 Find the second maximum and second minimum in a set of numbers
using auto boxing and unboxing.
Write a menu driven program to create an Arraylist and perform the
following operations i) Adding elements ii) Sorting elements iii)
3 Replace an element with another iv) Removing an element
v) Displaying all the elements vi) Adding an element between two
elements
Write a java program to find words with even number of characters
4 in a string, then swap the pair of characters in those words and also
toggle the characters in a given string EX: Good Morning everyone
Output: oGdo vereoyen gOOD mORNING EVERYONE
Write a Servlet program that accepts the age and name and
displays if the user is eligible for voting or not
6 Write a JSP program to print first 10 Fibonacci and 10 prime
numbers.
Write a java Servlet program to Download a file and display it on the
7 screen. (A link has to be provided in HTML, when the link is clicked
corresponding file has to be displayed on screen).
PART B
Write a menu driven JDBC program to perform basic operations
with Student Table.
Write a menu driven JDBC program to perform basic operations
with Bank Table.
Write a Java class called Tax with methods for calculating Income
Tax. Have this class as a servant and create a server program and
3 register in the rmiregistry. Write a client program to invoke these
remote methods of the servant and do the calculations. Accept inputs
interactively.
Write a Java class called SimpleInterest with methods for calculating
simple interest. Have this class as a servant and create a server
4 program and register in the rmiregistry. Write a client program to
invoke these remote methods of the servant and do the calculations.
Accept inputs at command prompt.
Write a java JSP program to get student information through a
5 HTML and create a JAVA Bean Class, populate Bean and Display
the same information through another JSP.
Write a menu driven program to create a linked list and perform the
following operations. a. to Insert some Elements at the Specified
6 Position b. swap two elements in a linked list c. to Iterate a
LinkedList in Reverse Order d. to Compare Two LinkedList e. to
Convert a LinkedList to ArrayList
Implement a java application based on the MVC design pattern. Input
student Rollno, name ,marks in three subject calculate result and grade
and display the result in neat format.