LOADING

Questions

BE - SEMESTER-VII - EXAMINATION - WINTER 2012-Winter-Dec-2012

Q-1(a)

Explain the need of MVC architecture. Write swing code to create toggle button and checkbox and handle their click event. Differentiate between toggle button and check box.

(7)
Q-1(b)

Explain JDBC driver types. Write a Java Bean to connect to database and insert in the database. Query will be passed as a message to bean.

(7)
Q-2(a)

 Write a TCP or UDP client and server program to do the following: 

               client> java client localhost/IP Port <enter>
               Enter text: This is my text to be changed by the SERVER <enter>
               Response from server: revres EHT YB DEGNAHC EB OT TXET YM SI SIHt
               client> exit

(7)
Q-2(b)

 Write RMI client/server implementation to read content of the file on server at client. Filename is passed by the client to server.

(7)
Q-3(a)

Enlist and explain need of JNDI with diagram. Explain J2EE architecture with diagram.

(7)
Q-3(b)

Explain Object serialization and how it can be done in java.

(7)
OR
Q-3(a)

Enlist and explain the need of filters with a program.

(7)
Q-3(b)

Explain internationalization and its use using java.

(7)
Q-4(a)

Explain Servlet life cycle & importance of context object.

(7)
Q-4(b)

 Write line(s) of code in JSP for following.   
                 I.    Session read and write
                 II.   URL rewriting sending and retrieving parameter(s)
                III.   URL redirection
                IV.    Print “hello world” as output
                V.     Include the other JSP file statically
                VI.    Expression to display date as output
               VII.    Method of setting the JSP parameters to use in JSTL

(7)
OR
Q-4(a)

Explain event handling in Java Servlet with example(s).

(7)
Q-4(b)

Enlist and explain the purpose and use of action tags in JSP.

(7)
Q-5(a)

Explain transaction handling using JSTL.

(7)
Q-5(b)

Write a note on hibernate.

(7)
OR
Q-5(a)

Write a JSTL program to parse & display text of XML file.

(7)
Q-5(b)

Write a JDBC program to insert and retrieve photo in databse.

(7)