The document contains a series of questions and programming tasks related to Java, JDBC, servlets, JSP, and the Spring framework. It covers topics such as interface definitions, differences between data structures, multithreading, JDBC architecture, and servlet life cycles. Additionally, it includes practical programming exercises for handling collections and user input in Java.
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 ratings0% found this document useful (0 votes)
7 views2 pages
Homework
The document contains a series of questions and programming tasks related to Java, JDBC, servlets, JSP, and the Spring framework. It covers topics such as interface definitions, differences between data structures, multithreading, JDBC architecture, and servlet life cycles. Additionally, it includes practical programming exercises for handling collections and user input in Java.
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
1. Define map interface.
2. Differentiate between set & list interface.
3. Which interface is implemented by Hashset class? 4. Write any two differences between Array List and Linked List. 5. Write a note on TreeMap class. 6. Write a Java program to accept N integer from user store them into suitable collection and display only even integers. 7. Write a Java program to accept ‘n’ numbers from user, store them into LinkedList collection. Display only odd numbers. 8. Program to create a Hashtable containing student name and percentage. Display the details of hash table. Also search for the specific student and display percentage of that student. 9. Write a java program to accept ‘n’ numbers from user, store them into LinkedList collection. Display only odd numbers. 10. Describe the use of get connection ( ). 11. Enlist the types of Thread Priority . 12. State the use of wait ( ). 13. Explain the use of the commit( ) method. 14. Differentiate between sleep( ) and interrupt( ). 15. How to create thread? 16. Write a Java program in multithreading to display all the alphabets between ‘A’ to ‘Z’. Each alphabet should display after two seconds. 17. How to create a thread in multithreading? 18. Write a java program in multithreading to display all the numbers between 1 to 10. Each number should display after 2 seconds. 19. Define synchronization and give its suitable example. 20. Describe the use of get connection ( ). 21. Give the name of JDBC API. 22. Give the name of JDBC API. 23. Explain JDBC Architecture. 24. Give any two fields of the ResultSet Interface. 25. List JDBC driver. 26. Define the TYPE 3 driver. 27. State the purpose of get connection. 28. Write a syntax of doGet(). 29. Write a JDBC program to accept details of Book (B_id, B_name, B_cost) from user & display it. 30. Compare statement & prepared statement interface. 31. Explain the JDBC Components. 32. Write a JDBC program to accept details of student(RN,Name, percentage) from the user. Display those details. 33. State the JDBC Components. 34. Explain JDBC architecture. 35. Explain the type of JDBC Drivers. 36. Discuss JDBC Architecture. 37. Compare and contrast doGET() and doPOST() methods in Java. 38. How to represent expressions in JSP? 39. State the purpose of JSP directives. 40. Define servlet. 41. What is the use of a request object? 42. How to represent expressions in JSP? 43. Which JSP tag is used to give declaration? 44. Write a syntax of getcookies( ) method in servlet. 45. List any two types of servlet. 46. Define Servlet? State its advantages. 47. Explain what is session in one sentence. 48. Write a servlet program to count the number of times a servlet has been invoked [use cookies]. 49. State the advantages of JSP over servlet? 50. Write a Servlet program to get information about the server such as name, port number and version of server. 51. With the help of a diagram explain the JSP life cycle and discuss its methods. 52. Explain life JSP Life Cycle. 53. Explain architecture of JSP with the help of diagram. 54. Explain Servlet Life Cycle. Differentiate between doGET and doPOST(). 55. List modules in spring. 56. Define spring framework. 57. List any one application of spring. 58. What are the applications of spring? 59. With the help of diagram describe module architecture of Spring. 60. Explain the Spring Framework Architecture with the help of diagram.