GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER-VII (OLD) EXAMINATION — WINTER 2018
--- Content provided by FirstRanker.com ---
Subject Code: 170703 Date: 26/11/2018
Subject Name: Advance Java Technology
Time: 10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
- Attempt all questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
--- Content provided by FirstRanker.com ---
Q.1 (a) Write swing code to create toggle button and checkbox and handle their click event. Differentiate between toggle button and check box. [07]
(b) Explain various types of JDBC drivers and comment on selection of driver. [07]
Q.2 (a) Explain the use of CallableStatement and PreparedStatement with example [07]
--- Content provided by FirstRanker.com ---
(b) Explain architecture of J2EE. List out java technologies supported by J2EE along with their applications [07]OR
(b) Write a Java Bean to connect to database and insert in the database. Query will be passed as a message to bean. [07]
Q.3 (a) What is JNDI? How can it be used for accessing various directory services such as LDAP, NIS, DNS? [07]
(b) What is filter? What is its use? List the different filter interfaces with their important methods [07]
--- Content provided by FirstRanker.com ---
OR
Q.3 (a) Explain internationalization and its usage [07]
(b) Explain Servlet life cycle & importance of context and config object. [07]
Q.4 (a) What are cookies? Write a servlet that reads and prints all the previous cookies and add a cookie with your name [07]
(b) Enlist and explain the purpose and use of action tags in JSP [07]
--- Content provided by FirstRanker.com ---
OR
Q.4 (a) Explain event handling in Java Servlet with example [07]
(b) Explain JSP tag library with examples [07]
Q.5 (a) Give the hibernate architecture and discuss each part in brief [07]
(b) Explain Socket, ServerSocket, InetAddress classes. Write a java program to find an IP address of the machine on which the program runs. [07]
--- Content provided by FirstRanker.com ---
OR
Q.5 (a) Explain O/R Mapping in Hibernate with example [07]
(b) Write a TCP or UDP client and server program to do the following: [07]
client> java client localhost/IP Port <enter>--- Content provided by FirstRanker.com ---
Enter text: I hope, this time I clear Advance Java <enter>
Response from server: aval ecnavdA raelc I emit siht ,epoh
client> exit
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU BE/B.Tech 2018 Winter Question Papers || Gujarat Technological University