ADVANCE JAVA PROGRAMMING
SEM V, 2012-13
B.Tech
UTTARAKHAND TECHNICAL UNIVERSITY (UTU)
Time: 3
hours
Total marks: 100
Attempt
any four parts of the following:
- How to use EJBGen annotations to speed EJB development?
Explain.
- How to use an EJB control to ease client development?
Explain.
- What is Struts? Explain with example.
- Explain the format of conditional statements? Give
example.
- What is event handler? Name its types.
- List and define the data types available in java
Script?
Section B
Attempt
any two parts of the following:
- Explain the lifecycle of a beanmanaged persistent
entity bean. What happens when the client wants to create some new
database data (say, a new order for goods placed over the Internet), it
calls a create() method on your entity bean's home object?
- (a) How you do Session Management in JSP? Explain.
(b) Write the names of implicit objects in JSP. Also provide the differences among them. Why we need them? - (a) What is Connection pooling? What are the advantages
of using a connection pool?
(b) What are the types of statements in JDBC? What are the differences/key features between the 3 different types of statements in JDBC?
Section C
Attempt
any two parts of the following:
- (a) Explain life cycle of Servlet. Explain the
different Authentication options available in servlets.
(b) List out the difference between ServletConfig and ServletContext? - (a) How servlets differ from RMI. Explain the
advantages and disadvantages of each technology? Explain.
(b) What is Servlet context? Explain session tracking in Java Servlet. - (a) What are the important items in javax servlets.
Explain them.
(b) Explain the underlying methods of Servlets interface.
Section D
- (a) What is Java Interface. Definition Language (IDL)?
Explain in detail.
(b) What is autoboxing? Explain with example. - (a) What is Java virtual machine? What are its
benefits?
(b) The HEAD method provides an efficient way to determine when a resource has been last modified.
Given the following deployment descriptor code:
<servlet>
<servlet-name>
test
</servlet-name>
<servlet-class>
TestServlet
</servlet-class>
<init-param>
<param-name>color</param-name>
<param-valaue>green</param-value>
</init-param>
</servlet>
Which two of the servlet methods can be used to access a servlet initialization parameter color?
Section E
Attempt
any two parts of the following:
- (a) What is the difference between variable declared
inside a declaration part and variable declared in scriplet part?
(b) How does a try statement determine which catch clause should be used to handle an exception? Explain with an appropriate example. - (a) How can you implement a thread-safe JSP page? What
are the advantages and disadvantages of using it?
(b) Compare 2-tier, 3-tier and N-tier architectures. - (a) Explain the 3-tier architecture in detail. Also
write down two examples of 3-tier architecture.
(b) Define Thin and Thick clients. What are the pros and cons of using Thin clients.
------------------------------
No comments:
Post a Comment