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

Adj Lab Syllabus

The document outlines a series of lab programs for advanced Java programming, covering various data structures, string operations, Swing applications, servlet programming, session management, cookie management, and JDBC projects. Each section includes specific tasks such as manipulating ArrayLists, HashSets, and LinkedLists, performing string operations, creating GUI applications, and interacting with databases. The document serves as a comprehensive guide for practical exercises in advanced Java concepts.

Uploaded by

4al22cs128
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)
24 views2 pages

Adj Lab Syllabus

The document outlines a series of lab programs for advanced Java programming, covering various data structures, string operations, Swing applications, servlet programming, session management, cookie management, and JDBC projects. Each section includes specific tasks such as manipulating ArrayLists, HashSets, and LinkedLists, performing string operations, creating GUI applications, and interacting with databases. The document serves as a comprehensive guide for practical exercises in advanced Java concepts.

Uploaded by

4al22cs128
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
You are on page 1/ 2

List of Lab Programs for Advanced Java Programming

1. Develop a Java program for adding elements [Apple, Banana, Orange] into an ArrayList and
a LinkedList to perform the following operations with different functions directed as follows

ArrayList Demonstrations : After adding elements: [Apple, Banana, Orange], After adding Mango at
index 1: [Apple, Mango, Banana, Orange],After adding multiple elements: [Apple, Mango, Banana,
Orange, Grape, Pineapple], After updating index 1 to Kiwi: [Apple, Kiwi, Banana, Orange, Grape,
Pineapple],First fruit: Apple, Contains Kiwi? True, After removing elements: [Kiwi, Banana, Grape,
Pineapple], Index of Grape: 2, List size: 4
Iterating using for-each loop: Kiwi, Banana, Grape, Pineapple
Iterating using Iterator : Kiwi, Banana, Grape, Pineapple
After sorting: [Banana, Grape, Kiwi, Pineapple], Sublist (0-2): [Banana, Grape], After clearing: []
LinkedList Demonstrations: LinkedList: [Apple, Banana, Orange], First element: Apple, Last
element: Orange, After removing first and last: [Banana]

2. Develop a Java program for adding elements [Apple, Banana, Orange] into HashSet, TreeSet
and LinkedHashSet to perform the following operations directed as follows

HashSet Demonstration :HashSet after adding elements: [Apple, Orange, Banana], Size of HashSet:
3, Is HashSet empty? false, Contains 'Apple'? true, Contains 'Grape'? False, After removing 'Banana':
[Apple, Orange]
TreeSet Demonstration : TreeSet (automatically sorted): [Elephant, Lion, Tiger, Zebra]
LinkedHashSet Demonstration: LinkedHashSet (maintains insertion order): [Red, Green, Blue]
Set Operations Demonstration:Union of sets: [1, 2, 3, 4, 5, 6, 7, 8], Intersection of sets: [4, 5]
Difference of sets (set1 - set2): [1, 2, 3]
Iteration Demonstration : Using for-each loop,Using Iterator

3. Develop a java program for performing various string operations with different string
handling functions directed as follows
String Creation and Basic Operations, Length and Character Access, String Comparison, String
Searching, Substring Operations , String Modification, Whitespace Handling, String Concatenation,
String Splitting, StringBuilder Demo, String Formatting , Validate Email with contains( ) and
startsWith() and endsWith()
4. Develop a Java progra to make a Performance Test on StringBuffer and StringBuilder for
appending the string ‘AIET’ for 10000 times both in the StringBuffer and StringBuilder. Justify
your answer which one is better.

5. Develop a Swing program in Java to display a message “Srilanka is pressed” or “India is


pressed” depending upon the Jbutton either Srilanka or India is pressed by implementing the
event handling mechanism with addActionListener( ).

6. Develop a Swing program in Java to display a message “Digital Clock is pressed” or “Hour
Glass is pressed” depending upon the Jbutton with image either Digital Clock or Hour Glass is
pressed by implementing the event handling mechanism with addActionListener( ).
7. Develop a Swing program in Java to add the countries USA, India, Vietnam, Canada,
Denmark, France, Great Britain, Japan, Africa, Greenland, Singapore into a JList and
display them on console whenever the countries are selected on the list.

8. Develop a Swing program in Java to create a Tabbed Pan of RED, BLUE and GREEN and
display the concerned color whenever the specific tab is selected in the Pan.

9. Build a servlet program to find the factorial of a number using HTML with step by step procedure.

10. Build a servlet program to create a cookie to get your name through text box and press submit
button( through HTML) to display the message by greeting Welcome back your name ! , you have
visited this page n times ( n = number of your visit ) and demonstrate the expiry of cookie also.

11. Build a Session Management using JSP program set with one minute session expiry time to get
your name through text box and press submit to display the message by greeting Hello your name!.
Check the expiry of the session after one minute.

12. Construct a Cookie Management program using JSP to get the fields Name, Domain and Max
Expiry Age ( in sec) and press the button Add Cookie for displaying the set cookie information. Then
it has to go to show the active cookie list when you press the link go to the active cookie list

13. Develop a JDBC project using JSP to append the fields empno, empname and basicsalary
into the table Emp of the database Employee.

14. Develop a JDBC project using JSP to update the fields empno, empname and basicsalary
into the table Emp of the database Employee.

15. Develop a JDBC project using JSP to delete a particular record with empno in the table Emp
of the database Employee.

16. Develop a JDBC project using JSP to get a empname and display all the records starting with
an alphabet.

17. Develop a Mini Project using JDBC connectivity from anyone of the domain as follows:

 Addition of Employee/Student /Product data


 Update of Employee / Student /Product data
 Deletion of Employee /Student/ Product data
 Query of Employee /Student / Product data

You might also like