100% found this document useful (1 vote)
1K views7 pages

Advanced Java Exam Question Bank

The document contains 150 questions related to web technologies like HTML, Servlets, JSP, JavaBeans, XML and frameworks like Spring. The questions cover concepts like lifecycle of servlets and JSP, session management, JDBC, RMI architecture, JavaBeans properties, web and EJB applications, XML parsers and ORM libraries.

Uploaded by

zeusff456
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views7 pages

Advanced Java Exam Question Bank

The document contains 150 questions related to web technologies like HTML, Servlets, JSP, JavaBeans, XML and frameworks like Spring. The questions cover concepts like lifecycle of servlets and JSP, session management, JDBC, RMI architecture, JavaBeans properties, web and EJB applications, XML parsers and ORM libraries.

Uploaded by

zeusff456
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

S.

No Questions
1. Define Web Server.

2. What are the Servlets?

3. What are stages in Servlet Life Cycle?

4. What is a Session?

5. What are cookies?

6. What are the actions involved in a doGet()


method?
7. Define parameter name or value.

8. How to terminate a session?

9. Define Server side language.

10. List the features of HTML5.

11. What is session Management?

12. Define JDBC.

13. How to retrieve data from JDBC database


connectivity?
14. Define Applet.

15. List the classes and interfaces of JDBC.

16. What is JSP?

17. What is the role of JSP in MVC model?

18. List out the benefits of JSP.

19. Write the difference between JSP & Servlet.

20. List the types of directives JSP.

21. What are directives?


22. What is the use of JSP?

23. What are the drawbacks of the step approach in


JSP over direct interpolation?
24. Name three types of information available in
valid JSP document.
25. What are the three categories of JSP element
types?
26. Define JavaMail.

27. Define J2EE.

28. What is Java Messaging Services?

29. Define Transactions.

30. Define implicit objects in JSP.

31. What is RMI? Give its significance.

32. What are the layers of RMI architecture?

33. What is Unicast Remote Object?

34. Define rebind() function.

35. What is Naming class?

36. State RMI role in Java.

37. Define Stub & Skeleton.

38. What are the applications in RMI?

39. Define Remote Interface.

40. Define RMI Clients.

41. What is RMI servlet?

42. Define ORB protocol.

43. What is Marshalling?


44. What is Remote Reference Layer?

45. Define RMI Servlet.

46. Define Java Bean.

47. What are the advantages of Java beans?

48. Compare Java Beans from Microsoft AcitiveX


control.
49. Define Bean Listener.

50. What is JAR file?

51. What are the different properties of Java Beans?

52. How is a manifest file created?

53. What is DatabaseMetaData?

54. Define Introspections.

55. What is Persistence?

56. What are the Java Beans?

57. State the difference between Stateless Session


Beans and Stateful Session Beans.
58. What are the key factors of Persistence API?

59. Define Notable Beans.

60. What Stub & Skeleton?

61. Define Web Applications.

62. What is API?

63. Write the steps for installing a web application?

64. Define XML.

65. What is XML parser?


66. What are the types of XML Parser?

67. What is well-formed document?

68. What is meant by a XML namespace?

69. List the XML syntax rules.

70. How a XML document can be displayed on a


browser?
71. What is networking?

72. Define Spring.

73. What is ORM Library?

74. Define Business Component Development.

75. Define Super Container of Java Objects

SECTION – B (8 MARKS)
[Link] Questions
76. How Servlets are used in web based applications?
Explain in detail.
77. Explain in detail about Forms & List in HTML.
78. Write about Applet life cycle with an example program
that display Hello Message.
79. Illustrate the general steps to run a Servlet.
80. Write shorts notes on Servlet interface & its methods.
81. Write the code segment to store current server time in
session using Java Servlet API.
82. Write short notes on AWT components.
83. Discuss about HTML table with suitable example.
84. Describe in detail about Session Management.
85. Define JDBC. List and explain all the JDBC
components.
86. Develop applications of JSP.
87. Briefly write on sharing data between JSP pages and
requests.
88. Explain the JSP Action element.
89. Discuss in detail implicit objects.
90. Explain in details about Include Directives in JSP.
91. Write a program to develop login form using JSP.
92. State & Explain JSP predefined variables.
93. Mention Advantages of JSP over other technology.
94. Write short notes on JavaMail.
95. Discuss about Java Messaging Service(JMS).
96. Define Java RMI. In the architecture of RMI, Explain
the significance of Stub, Skeleton, and Remote
Reference Layer.
97. Describe in detail about Marshalling and Unmarshalling
and their purpose in RMI.
98. State and explain the primary advantages of RMI.
99. How will you create distributed applications using RMI?
100. Write short notes ORB protocol.
101. Discuss in detail about Remote Reference Layer.
102. Explain the methods, rebind(),lookup() in Naming Class.
103. Explain serialization and de-serialization.
104. Illustrate the steps involved to make RMI Register.
105. Explain the role of Remote Interface in RMI.
106. Write short notes on Software component Assembly
Model.

107. Describe in detail about Java Beans Development Kit.


108. What are the steps to be followed in creating a new
Bean? Explain it.
109. Discuss in detail about the different properties of a Java
Bean.
110. Write short notes on Notable Beans.
111. Explain in detail about Application Builder Tool.
112. Discuss about (i) Bean Info (ii) Bean Customization
113. Discuss about Bean Introspection in detail.
114. Write short notes on (i) Bean Info Interface (ii) Bound
Properties
115. Discuss in detail about Glasgow development.
116. Write the code segment to store current server time in
session using Java servlet API.
117. Explain in detail about Java Server Pages Scripting
components with example.
118. Explain the role XML name spaces with an example.
119. What is XMLHttpRequest Object? List common
XMLHttpRequest Object Properties.
120. Create a web service in java environment to return the
sum of two integers with necessary deployment
procedure.
121. Write short notes on Business Component Development
with Java Beans.
122. Describe in detail about managing the distributed
system.
123. Discuss in detail about super container of Java Objects.
124. Explain in detail about Hibernate with an example.
125. Explain in detail about ORM Library with an example.

SECTION – C (15 MARKS)


S. No Questions
126. Explain in detail about Java Servlet life cycle.
127. Explain in detail about servlet [Link] API.
128. Discuss in detail about Servlet parameters and reading
initialization parameters.
129. Define JDBC. Mention all the steps involved in JDBC
connectivity.
130. Write a program to communicate Applet to Servlet
communication.
131. Explain in detail about the JSP case study and its
applications.
132. Discuss about the JSP applications based on MVC
Architecture.
133. Explain about JSP implicit objects with an example.
134. Describe in detail about a JSP scripting elements.
135. Explain Java Mail API.
136. Explain about the Java RMI Architecture and its
applications with suitable diagram.
137. Write a Java program using RMI.
138. Discuss in detail pushing data from RMI Servlet.
139. Discuss about ORB protocol.
140. Explain in detail about the layers of RMI architecture.
141. Discuss about (i) Java Beans API (ii) Advantages of
Java Beans
142. Describe about Introduction to Java Beans with suitable
example.
143. Write short notes on (i) JAR Files (ii) Bound Properties
144. Explain in detail about Persistence API.
145. Discuss in detail about Bound Properties in Java Beans
146. Explain in detail about web application development
using servlet.
147. Write short notes on JSP web application development.
148. Define XML. Discuss about the XML concept.
149. Explain in detail about Super container Java Object.
150. Write short notes on (i) Hibernate (ii) ORM Library

Common questions

Powered by AI

Java Beans are reusable software components for Java that can be manipulated visually in a builder tool. They are encapsulated classes with properties, events, and methods conforming to a particular design pattern. Java Beans facilitate modular application development and allow enterprise applications to be composed of interchangeable components. Benefits include the use of introspection to discover member properties, customization, easy reusability, and the ability to persist object states, therefore improving development efficiency and maintainability .

Implicit objects in JSP are pre-defined variables created by the JSP engine to provide convenient access to common objects related to the client request, session, and application context. Examples include 'request', 'response', 'session', 'application', 'out', and 'config'. These objects simplify the development of JSP pages by allowing easy manipulation of data related to HTTP requests, session management, writing output to the browser, and accessing servlet configuration and context attributes .

JDBC (Java Database Connectivity) is an API that enables Java applications to interact with a wide range of databases. It provides methods for querying and updating data in relational databases. The connectivity involves loading the JDBC driver, establishing a connection to the database via DriverManager, creating a Statement object, executing query statements, and processing the ResultSet obtained. JDBC is essential for executing SQL queries and handling database operations through Java applications .

Session management is a crucial aspect of web applications that involves maintaining the state of a user's interaction with a web application across multiple requests. It utilizes mechanisms such as cookies, URL rewriting, and SSL sessions to track user data and preferences. The importance of session management lies in its ability to provide a seamless user experience by persisting user data like login credentials, shopping cart details, and user preferences during a browsing session .

The RMI (Remote Method Invocation) architecture consists of several key components: a client, a server, stubs, skeletons, and the RMI registry. The client initiates communication by invoking methods on the stub, which acts as a local representative of the remote object on the server. The skeleton on the server receives requests from the stub and forwards them to the actual remote object. The RMI registry is a naming service allowing clients to locate remote objects. Together, these components facilitate the invocation of methods across different JVMs, enabling distributed computing in Java applications .

XML (eXtensible Markup Language) syntax rules include requirements such as every start-tag must have a corresponding end-tag, elements must be properly nested, attribute values must be quoted, and the document must have a single root element. These rules ensure the well-formedness of XML documents, facilitating consistent parsing and processing across different platforms and applications. XML's structured format allows for data exchange and sharing across varying systems in a readable and platform-independent manner .

ORM (Object-Relational Mapping) is a programming technique used to convert data from a database to objects in a programming language like Java. Hibernate is a popular ORM library in Java that facilitates this conversion, automating the data mapping between Java objects and database tables. It provides a framework for handling SQL operations without directly interacting with the database, streamlining code by enabling developers to manipulate data using Java objects rather than SQL queries .

JSP (JavaServer Pages) and Servlets are both Java-based technologies used to build web applications. JSP is primarily used for creating dynamic web pages with HTML, XML, or other document types and allows embedding of Java code in HTML pages, facilitating the separation of user interface from content generation. Servlets, on the other hand, are Java programs that handle requests and generate responses in a more programmatic and less visual manner. JSP is often preferred for the presentation layer while Servlets are used for business logic and control .

A Java applet transitions through several phases in its lifecycle: initialization, starting, stopping, and destruction. During initialization, the applet is loaded and initial setup is performed via the init() method. The start() method is then called each time the applet is displayed on the screen, initiating the execution phase. The stop() method halts the applet when it is no longer visible, and finally, the destroy() method releases resources before the applet is terminated. Applets are used to create dynamic, interactive components within web pages, enabling client-side execution of Java code .

Servlets serve as Java programs that extend the capabilities of servers hosting applications accessed via a request-response model. They play a crucial role in processing data submitted via web forms, managing session data, and dynamically generating web content. Servlets run on the server side and are platform-independent, making them well-suited for creating dynamic and interactive web applications .

You might also like