2 marks questions
1. Write down 2 methods of connection interface.
2. What is sleep() method in multithreading.
3. What is the method to set the thread priority.
4. Write down 2 classes used in socket programming.
5. What is IP address.
6. What is doGet () method of servlet?
7. What are the parameters of service() method of servlet.
8. What is JSP? i) What is Hibernate?
9. What is getConnection method?
10. List types of Resultset.
11. What is IP Address?
12. What is JDBC?
13. What is servlet?
14. What is cookies?
15. What is UDP?
16. What is thread?
17. What is socket?
18. List the directives in JSP.
19. What is networking?
20. What is the use of cookies?
21. What is the use of Runnable interface?
22. Explain thread priority.
23. What is the use of HQL?
24. What are the directives in JSP?
25. What is networking?
26. Write the method for creating connection?
27. What is the yield ( ) method?
28. What is the use of socket class?
29. What is servlet?
3 marks questions
1. Connection interface.
2. Runnable interface.
3. Thread synchronization
4. notify( ), notify All( ) & wait( )
5. Applications of spring.
6. Connection Interface.
7. Run method
8. Statement interface
9. HttpServlet
4 marks non coding questions
1. What is statement? Explain the types of statements in JDBC.
2. Explain thread life cycle with diagram.
3. What are the implicit objects in JSP. Explain any 4.
4. Write down the difference between doGet() and doPost()method.
5. What is Result set interface in JDBC? Explain methods in Resultset interface.
6. Explain JSP life cycle with diagram.
7. What are the states of the object in hibernate?
8. What is session tracking? What are the different ways of session tracking in servlet.
9. What is thread Priority? How to set the thread priorities?
10. List & explain all the interfaces used in JDBC.
11. Differentiate between HTTP servlet and Generic servlet.
12. Explain life cycle of JSP with suitable diagram.
13. What is synchronization? Explain.
14. Explain statement interface in detail.
15. Explain Thread priority in detail.
16. Differentiate between TCP socket and UDP socket.
17. Explain Architecture of Hibernate.
18. Explain life cycle of servlet with suitable diagram.
19. What is multithreading? Explain.
20. Explain in details directives in JSP.
21. Explain inter thread communication with an example.
22. Differentiate between statement and prepared statement interface.
23. Explain methods of serversocket class with syntax.
24. What is the difference between execute ( ), executeQuery ( ) and executeupdate (
25. Explain an architecture of hibernate?
26. Explain methods of socket class with example.
27. Write advantages and disadvantages of spring.
28. Explain JSP tags with example.
29. What are the advantages and disadvantages of multithreading?
4 marks coding questions
1. Write a java program to count number of records in a table [repeated]
2. Write a java program in to print from 100 to 1. (use sleep() method)
3. Write a java program to create table student with attributes Rno, Sname, Per.
4. Write a JSP application to accept a user name and greet the user.
5. Write a java program to display IP address of a machine. [repeated]
6. Write a java program to print “Hello Java” message 10 times.
7. Write a java program to delete salary column from Emp table. Assume Emp table with
attributes ENo, EName and salary is already created.
8. Write a java servlet program to accept name from user & display on browser [use HTML].
9. Write a JSP program to accept Name & age of voter and check whether he/she is eligible for
voting or not.
10. Write a JDBC program to delete the records of employees whose names are starting with ‘A’
character.
11. Write servlet program to accept two numbers from user and print addition of that in blue
colour. Write a JDBC program to display the details of employees (eno, ename, department,
sal) whose department is ‘Computer Application’.