21CS642_JAVA_IMP[1]
21CS642_JAVA_IMP[1]
3 How to use an enum constructor, instant variable and method Explain with
example.
11 1What is an Annotation?
12 What is Wrapper class? Explain the foilowing with example
Boxing
Un-Boxing
Auto-boxing
Auto-unboxing
MOD 2 DOWNLOAD
1 What are Generics?Give one example program.
5 Write a program that contain generics class with two type parameters.
MOD 3 DOWNLOAD
1 What is string in Java? Write a Java program that demonstrates constructors
of String class.
(08 Marks)
2 What is string in Java? Explain the different constructors of string class. Also
difference between String Class and String Buffer class.
17 write a program in java to replace all the matching substring with a given
string
MOD 4 DOWNLOAD
5 List the difference between JSP and servlet and also explain the different JSP
tags with
example.
6 What are cookies? How cookies are handled in JSP? Write a JSP program to
create and read a cookie.
(10 Marks)
7 What is Cookie? List out the methods defined by Coôkie? Write a Java
program to add a Cookie.
8 Write a program using servlet which contains HTML page with various color
options. When user choose 8th.
particular color, the background of that page should be changed accordingly.
(08 Marks)
15 What is a session object? Write the program to create and Read session
object, using JSP
MOD 5 DOWNLOAD
1 What are database drivers? What is JDBC? Explain the different JDBC driver
types.
10 Explain the use of object in establishing the connection also write a program
to call stored procedure