Updated Question Bank Adv JAVA
Updated Question Bank Adv JAVA
QUESTION BANK
UNIT I
UNIT II
Q.1 Discuss how many steps are there in a servlets life cycle.
Q.2 Define Servlet chaining; what is request dispatch in a context of a java web application.
Q.3 Explain following methods in cookies.
Clone()
getComment()
getDomain()
getName()
getPath()
Q.4 Analyze the difference between server-side includes and request forwarding in Servlets.
Q.5 Describe the concept of request forwarding in the context of Java servlets. Explain how it differs
from HTTP redirects.
Q.6 Analysis the difference between server side include and request forwarding in servlets
UNIT III
Q.1 List & Explain JSP Elements with syntax.
Q.2 Illustrate different steps are involved in JSP life cycle
Q.3 How to display data from an array list of more than one bin on JSP page using scripting &JSP tags.
Q.4 Analyze the different scopes of a JavaBean in JSP, Compare and contrast them.
Q.5 Describe how JSP pages handle client requests. Explain the role of the service () method, and how is
the dynamic content generated during the execution phase?
Q.6 Explain the following with example - Bean instances ii) Bean scopes.
Q.7 Explain the steps involved in setting up the environments in JSP development
UNIT IV
Q.1 If the relational operator such as (less than equal) <= used in same kind of expression as a logical
Operator such as &&? Explain
Q.2 Write a java Script code to show example of global variable & local variable.
Q.3 Explain the purpose of the switch statement in JavaScript. Provide an example illustrating its syntax
and usage.
Q.4 Differentiate between mouse events and keyboard events in JavaScript. Provide examples of handling
both types of events.
Q.5 Write a JavaScript expression to concatenate two strings stored in variables first Name' and last
Name'.
Q.6 Evaluate the role of event handling in JavaScript. Provide examples of common events.
Q.7 Design a web form using HTML and Implement JavaScript code to validate user input.
UNIT V
Q.1 List & Explain key components of Hibernate with Hibernate architecture in details?
Q.2 Prepare following file for automatic table creation in hibernate. Using MySQL database using id
&name attributes
a. Hibernate.CFG.XMLfile
b. Student.HBM.XMLfile
c. Student.javafile
Q.3 Describe Hibernate O/R Mappings in detail.& Explain the purpose
Q.4 Write a Hibernate Query Language (HQL) statement to retrieve data from a database table.
Q.5 Describe hibernate query language and its uses in hibernate application