Assignments AJP
Assignments AJP
UNIT-1
1. Write a client-server program using UDP socket. Client send the list of N strings and server responds
the concatenation of those strings.
2. Write a client-server program using TCP or UDP where the client sends 10 numbers and server
responds with the numbers in sorted order.
3.Write a client server program using TCP where client sends a string and server checks whether that
string is palindrome or not and responds with appropriate message.
4.What is Datagram Socket? Explain in detail with example.
5.Write a UDP Client-Server program in which the Client sends any string and Server responds with
Reverse string.
Assignment-2
UNIT-2
1.What is JDBC? List out all various types of JDBC Driver. Explain Thick and Thin driver. Write code
snippet for each type of JDBC connection. Comment on selection of driver.
2. What is the use of Statement class in JDBC? List and explain various types of statements in JDBC.
3.Show the use of PreparedStatement object to run precompiled SQL statement. Also write example
of java snippet for PreparedStaement.
4.List the different types of JDBC drivers. Compare the various driver types for their advantages and
disadvantages.
5.Explain use of DatabaseMetaData with example.
6. Discuss CallableStatement with example.
7.Explain usage of following classes with respect to JDBC. Also explain some of their important
methods.
1. Statement
2. Connection
3. Resultset
Assignment-3
Unit-3
Q.1 Explain use of ServletConfig and ServletContext object with example.
Q.2 Write working of session management in servlet with example.
Q.3 Write difference between (1) Generic Servlet and Http Servlet (2) doGet and doPost.
Q.4 Explain the configuration of filter using deployment descriptor with example.
Q.5 What is Request Dispatcher? What is the difference between Request dispatcher’s forward ()
and include () method? Give one example.
Assignment-4
Unit-4
Q.1 List page directive in JSP? Explain any two with example.
Q.2 List and explain various phases of JSP life cycle?
Q.3 List JSP implicit object? Explain any two with example.
Q.4 What is session object in JSP? Show its use with proper example.
Q.5 Write a java bean named “student” having roll no and name having getter & setter methods.
Write a JSP page to set the roll number and name for a student object and then print them by
reading from object.