Assignment 1, 2 and Punishment Assignment Questions
Assignment 1, 2 and Punishment Assignment Questions
1. Explain briefly the different types of JDBC drivers with its connection sequence.
2. Explain the following JDBC steps and Illustrate with syntax and example.
3. Illustrate with an example how statement object is created and used to execute a query.
4. Illustrate with an example the various methods used to implement database transaction.
5. Define DatabaseMetadata, ResultSetMetaData and write a program to display
DatabaseMetadata and ResultSetMetaData.
6. Write difference between jsp and servlets.
7. Explain with a syntax and example the different jsp tags.
8. Explain two types control statements used in JSP by suitable example.
9. What is cookie? Write a jsp program to create and add cookie at client machine.
10. Write a short note on session tracking in jsp.
1. Explain briefly, what generics are and how generic classes are declared and used with a
syntax & example.
2. Write a Java program to demonstrate the generic class with two type parameters and explain
the operation performed for each step.
3. Illustrate with a program example what is the significance of using bounded types in generic
classes.
4. Why do we need wildcard arguments in defining methods, and how are they specified?
Explain with an example.
5. What are bounded wildcards? Explain with syntax and examples how upper and lower-bound
wildcards are specified in the program.
6. Explain with syntax and examples how generic methods are created in non-generic classes.
7. Write a program on how generic constructors are implemented in non-generic classes.
8. Explain with syntax and an example of how generic interfaces are implemented in a Java
program.
9. Write a short note on Legacy code.