Anda di halaman 1dari 6

Prepared By: HEMALI K SHAH 1

(LJ IET)
L.J.InstituteofEngineering&Technology
S.G.Highway,Ahmedabad382210
CE/ITDepartment
QuestionBankAndProgramList

Subject Name: Advance J ava Technology


Subject Code: 170703
Branch & Semester: VII-CE/IT

Chapter 1 : Introduction To Java2 , Swing Component And MVC


1. What is the difference between applet, application and a servlet? [LJIET] 4
2. Explain in brief: i) J ava is Architecture Neutral ii) J ava is Language of Internet. iii) J RE. [LJIET] 4
3. What is Event ? Explain Event Delegation Model in detail. [LJIET] 7
4. Write a swing based application having menu items on menu bar and implement one of the menu item say new, open,
close, exit. And implement the action handler for opening the file using FileDialog. [LJIET]
7
5. Explain GridLayout and GridBagLayout in detail with difference and similarities. [LJIET] 7
6. Explain Look and Feel standard dialog box features of Swing applications. [LJIET] 4
7. Explain MVC architecture in detail. [LJIET] (Dec-13) 7
8. Write the note on Swing and List its Components and Containers. [LJIET] 7
9. Write an applet that reads items details for super market. Detail includes icode, itemname, itemtype, unitprice,
discount (if any, default is 0). Proovide a list box for valid itemtypes food product, detergents, grosarry, electronics
& others. Program should display the same information on to the console. [LJIET]
7
10. Explain MVC architecture. List its major advantages. Explain plugable Look & Feel in java swing with example. (
June-14) OR Write a swing program to implement plugable Look & Feel capability. [LJIET]
7
11. Write the use of J Frame and JInternalFrame. [LJIET] 2
12. List and explain various swing borders. Using BorderFactory class to set various types of borders for various
J buttons on J frame. [LJIET]
7
13. What is difference between AWT and Swing? Explain MVC Architecture. [LJIET] ( June-14) 7
14. Explain MVC architecture. List packages and classes used for swing programming in Java. Using swing write a java
program for entry of employee information name, empid, department (drop down list), salary, Male / Female (radio
button), area of expertise ( provide 4 different area check box) in a GUI from. [LJIET]
7
15. Write the swing events defined by javax.swing.event package. Explain any two of them? [LJIET] 4
16. Differentiate Applet and JApplet. Explain Applet life cycle and applet tag, and attribute. [LJIET] 7
17. Develop a java program having a calculator interface with 0 to 9 digit in one box, operation ( +, -, ) in second box,
control operations such as c-cancel, CA-Clear All, MR- Memory Recall etc.in third box. Provide proper space
arrangement. (Use Box Container only). [LJIET]
7
18. Write the Application to add image icon to swing component by taking suitable example. [LJIET] 7
19. Write Note on different types of Layouts. (OR) List and explain various swing layouts and components with
examples. [LJIET] (NOV-11)
7
20. Answer the following questions w.r.to Swing. [LJIET] (JUNE-12)
i. What is pluggable look and feel? How do you set the look and feel of the components?
ii. Give the limitations of AWT and explain how do Swing overcome them.
7
21. What do you mean by MVC architecture? Explain its role in modern applications and list its advantages. [LJIET] 7
Prepared By: HEMALI K SHAH 2
(LJ IET)
(May-13)
22. Compare the AWT and Swing. [LJIET] (May-13, June-14)

3.5
23. What is toggle button? How they different than normal button? [LJIET] (June-14) 7
24. What is pluggable look and feel? What is its importance? Assume that an application contains a textfield and a
button. Show that how to apply plaf of your choice to them. [LJIET] (Dec-13)
7

Chapter 2 JDBC And JavaBean

1. Describe the various categories of database drivers available. Also explain classes supported for establishing database
connection with suitable example. [LJIET] (NOV-11)
7
2. Explain JDBC Architecture. [LJIET] (Dec-13) 7
3. Explain the use of JDBC and Write the difference between J DBC and ODBC and write the program to create the
database class that has one constructor which has code to load the J DBC driver and establish the connection with the
database and implement the following methods i) execSQLQuery(sqlstring) ii) execSQLUpdate(sqlstring) [LJIET]
7
4. Explain types of various JDBC drivers. (June-14) Using any one type of driver, explain how to create different
statement handles. [LJIET]
7
5. Describe following with proper illustrations: Type-4 J DBC driver. [LJIET] (Dec-13) 3.5
6. Explain the use of Callable Statement and Prepared Statement with example. [LJIET] (NOV-11) 7
7. Explain How Transaction processing is handled by JDBC with example. [LJIET] 7
8. What is metadata? Explain metadata for resultset and database both. Explain the difference between execute(),
executeUpdate() and executeBatch() method. [LJIET]
7
9. Write J ava application program to change the basic =basic +500 of all the employees whose age is greater then 40
from employee table then display how many record updated. [LJIET]
7
10. Write a program using JDBC for getting personal information name, birthdate, sex, address, phone no, email-id &
store it in database. Also provide list of all records, all male, all female & all minors (age below 18). [LJIET]
7
11. Explain following classes : DriverManager, Connection, Statement, Resultset. [LJIET] 6
12. Write database application that prints different records from a table. Find out the name of table, no. of columns, no.
of records and type of the columns. [LJIET]
7
13. Write the steps to connect to the database in java application. 7
14. What is J ava Beans? What is its significance? What different properties are supported by java beans? What is
property Editor? How it used to customize bean property? Describe various interfaces and classes used for bean
development. [LJIET]
7
15. What are the difference between J ava Bean and basic java class? Explain Java Bean Architecture. [LJIET] 7
16. State the difference between Introspection and Reflection, Explain java.lang.ref package in detail. [LJIET] 7
17. What is a java bean? What different types of properties a java bean can have? How a property Editor does works?
[LJIET]
7
18. Explain the following classes: BeanInfo, SimpleBeanInfo, PropertyDescriptor, Introspector. [LJIET] 7
19. What is J DBC driver? What is its role? List the types of drivers and explain working of type-4 driver. Give the
different ways to create the JDBC connection with example. [LJIET] (JUNE-12)
7
20. What is Callable statement? Write a procedure to insert a row into the table student(roll_no,name,%ge) and call it
using callable statement in J DBC application. ? (JUNE-12) (OR)
What is CallableStatement? Show that how to use it to call a stored procedure running at database layer. [LJIET]
7
Prepared By: HEMALI K SHAH 3
(LJ IET)
(Dec-13)
21. What is a java bean? What different types of properties a java bean can have? How a property Editor does works?
[LJIET]
7
22. Consider Bank table with attributes AccountNo,CustomerName, Balance, Phone and Address. Write a database
application which allows insertion, updation and deletion of records in Bank table. Print values of all customers
whose balance is greater than 20,000. [LJIET] (JUNE-12)
7
23. What are the differences between J ava Bean and basic java class? Explain J ava Bean Architecture. [LJIET] (NOV-
11)
7
24. Explain the use of the PreparedStatement object of the J DBC with an appropriate example. [LJIET] (May-13)
7
25. Explain the J DBC URL with appropriate examples. [LJIET] (May-13)
3.5
26. Explain J DBC driver types. Write a J ava Bean to connect to database and insert in the database. Query will be passed
as a message to bean. [LJIET] (Jan-13)
7
27. Write a J DBC program to insert and retrieve photo in databse. [LJIET] (Jan-13)
7
Chapter 3 Network Programming
1. Explain the difference between datagram socket and multicast socket. Give a code segment of sending
DatagramPacket using datagram socket. [LJIET]
7
2. Explain Socket, ServerSocket, InetAddress classes. Write a java program to find an IP address of the machine on
which the program runs. [LJIET] (NOV-11)
7
3. Explain the function of the following classes: [LJIET] (Dec-13)
(1) URL (2) URLConnection
7
4. Explain the following classes with their use.
i. URLConnection class
ii. DatagramSocket and DatagramPacket class [LJIET] (JUNE-12)
7
5. Write a client program to send any string from its standard input to the server program. The server program reads the
string, finds number of characters and digits and sends it back to client program. Use connection-oriented or
connection-less communication. [LJIET] (NOV-11)
7
6. Explain Socket, ServerSocket, InetAddress classes. Write a java program to find an IP address of the machine on
which the program runs. [LJIET] (NOV-11)
7
7. Write a client-server program using TCP sockets to echo the message send by the client. [LJIET] (May-13)
7
8. What is Server Socket? How it works in java ? Explain it with example. [LJIET] [LJIET] (June-14)
7
9. Whatis Datagram Socket? Explain it with example.

10. Use of the URL class. [LJIET] (May-13)
3.5
11. 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 [LJIET] (Jan-13)
7
Chapter 4 RMI, JNDI, And Internationalization
1. Explain various API classes of RMI frameworks. Write the steps for developing the RMI object. [LJIET] 7
2. Answer the following question in brief.
Why does the RMI implementation create so many sockets when application uses custom socket factories? It is
possible for remote object to be notified when all client disconnect? Explain.What are the three responsibilities of
event source and event listeners? [LJIET]
7
Prepared By: HEMALI K SHAH 4
(LJ IET)
3. How do RMI clients contact remote RMI servers? And why does callback routine fail with a nested
java.net.UnknownHostException? [LJIET]
7
4. How does UniCastRemote class and MultiCastRemote class activated? What is role of Activation in RMI? [LJIET] 7
5. Explain how RMI works. Also explain parameter passing in RMI with example. OR How do RMI clients contact
remote RMI servers? Explain with detailed architecture of RMI. [LJIET] (NOV-11)
7
6. What is difference between Activable & UnicastRemoteObject? Write basic different in syntax of writing constructor
of Activable & UnicastRemoteObject. Explain purpose of MarshalledObject while creating ActivableRemoteObject
and also show the purpose of GroupDescriptor when Activable Object runs. [LJIET]
7
7. Explain object serialization in detail and the serializable interface. [LJIET] 7
8. Develop a java application using internationalization (I18N) for printing currency and Date of different countries.
[LJIET]
7
9. What is a need for Internationalization? What are the different ways to implement it? Write an java application using
internationalization to print various elective subjects elec1, elec2, elec3 of CE sem VIII offered at various institutes
LDCE,CITC,SVIT. [LJIET]
7
10. What is Internationalization? How Internationalization can be implemented in J ava? Give the list of classes and their
useful members / methods for implementation of Internationalization. [LJIET]
7
11. Write note on Locale-specific format conversion classes. [LJIET] 7
12. Using Internationalization, write a java program for displaying weather information for different states of India.
[LJIET] (NOV-11)
7
13. Explain Collation for sorting text strings according to Locale language. [LJIET]
14. Explain how JNDI works. How J NDI can be used to store various context attribute. Give one example of adding one
context entry using J NDI. [LJIET]
7
15. Compare Naming and Directory service in java with help of example. [LJIET] (June-14) 7
16. Explain the significance of JNDI context along with basic lookup in J NDI directory services. [LJIET]
17. What is J NDI? How it can be used for accessing various directory services such as LDAP, NIS, DNS? Write
template class for creating directory context. List the basic operations available in J NDI. [LJIET] (NOV-11)
7
18. What is RMI? Give the architecture of RMI and discuss the functions of each layer. What is role of RMI registry?
[LJIET] (JUNE-12)
7
19. Draw and explain architecture of Callable RMI. [LJIET] (June-14) 7
20. What is serialization/deserialization of objects? Why do you need it? Give the example with necessary code.
[LJIET] (NOV-11,JUNE-12)
7
21. Write an RMI application where client sends empno and server returns corresponding salary by querying database.
[LJIET] (NOV-11)
7
22. Write an RMI program to echo the message send by the client to the RMI server object. [LJIET] (May-13)
7
23. Remote reference layer in RMI architecture. [LJIET] (May-13)
3.5
24. Enlist and explain need of JNDI with diagram. Explain J2EE architecture with diagram. [LJIET] (Jan-13, June-14)
7
25. Explain Object serialization and how it can be done in java. [LJIET] (Jan-13)
7
26. Explain internationalization and its use using java. [LJIET] (Jan-13)
7
27. Write RMI client/server implementation to read content of the file on server at client. Filename is passed by the client
to server. [LJIET] (Jan-13)
7
28. Write a complete RMI application with interface, server object and client to compute the area of a circle where client
provides the radius. [LJIET] (Dec-13)
7

Prepared By: HEMALI K SHAH 5
(LJ IET)
Chapter 5 Introduction to Java Web Application, architecture
1. Explain Enterprise Architecture and its types with diagram. [LJIET] 7
2. Explain architecture of J2EE. List out java technologies supported by J 2EE along with their applications. [LJIET]
(Nov-11)
7
3. Explain web Application, Web Container (Nov-11), Web Architecture. [LJIET] 7
4. Explain HTTP Protocol, Request and Response . [LJIET] 7
5. Explain MVC Architecture with detail. [LJIET] (NOV-11) 7
6. Give the advantages of n-tier architecture and discuss the objectives of the Enterprise applications. [LJIET] (June-
12)
7
7. List characteristics of Enterprise applications. [LJIET] (June-14) 7
8. Give the characteristics of the HTTP protocol and explain the GET, HEAD and PUT methods of the HTTP protocol.
(May-13)
7
9. Explain the container architecture of the J ava EE with role of each component. [LJIET] (May-13)
(OR) What is container in J ava EE 6? Give its architecture and discuss its role in hosting the applications. [LJIET]
(Dec-13)
7
Chapter 6 Servlet
1. Explain Servlet Life Cycle in detail. [LJIET] (June-12, Nov-11,May-13,Jan-13, June-14)
7
2. What is deployment descriptor? Explain varies tags of DD. What ia the use of DD? [LJIET] 7
3. What is difference between Attribute and Parameter? [LJIET] 7
4. Explain ServletConfig, ServletContext, HTTPSession. How it useful for any web application. [LJIET] (Jan-13) 7
5. Explain Request and Response Objects in servlet. [LJIET] (June-14) 7
6. What do you mean by Session? Write 4 session tracking method in detail. [LJIET] 7
7. What do you mean by Cookie? How to read and write with Cookie object. [LJIET] 7
8. What are cookies and sessions? How can you use them in J ava EE? Compare them. [LJIET] (Dec-13) 7
9. Explain varies Servlet Events and its use. How to register listener for web-app in Deployment Descriptor. [LJIET]
(OR)
Describe following with proper illustrations: Servlet Events. [LJIET] (Dec-13)
7
3.5
10. What do you mean by filter? What is the advantage of it? How to create a filter in your application? [LJIET] 7
11. What is servlet filters? Give the necessary API for filters and explain their use. [LJIET] (Dec-13) 7
12. What is filter? What is its use? List the different filter interfaces with their important methods. [LJIET] (JUNE-12) 7
13. List the servlet session level events and show that how servlet destroy event is handled? [LJIET] (JUNE-12) 7
14. Write a servlet which counts the number of digits into an integer received as parameter. Give the necessary web.xml
file to deploy the servlet. [LJIET] (JUNE-12)
7
15. Write a web application using servlet to compute an area of a circle. Get the radius from the client. Write necessary
web.xml file. [LJIET] (Dec-13)
7
16. What is servlet configuration? Show it with example web.xml file. [LJIET] (Dec-13) 7
17. What are cookies? Write a servlet that reads and prints all the previous cookies and add a cookie with your name.
[LJIET] (JUNE-12)
7
18. Develop any Servlet application which demonstrates use of session management. [LJIET] (May-13) 7
19. Write a Web application using servlet to find the sum of all the digits of an input integer. [LJIET] (May-13)
7
20. Enlist and explain the need of filters with a program. [LJIET] (Jan-13)
7
21. Explain event handling in J ava Servlet with example(s). [LJIET] (Jan-13)
7
22. Write short note on Protocol handler. [LJIET] (June-14)
7
Prepared By: HEMALI K SHAH 6
(LJ IET)
Chapter 7 JSP
1. Write line(s) of code in J SP for following. [LJIET] (Jan-13)
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 J SP file statically
vi. Expression to display date as output
vii. Method of setting the J SP parameters to use in J STL
7
2. Explain J SP Life Cycle in detail. [LJIET] 7
3. Draw and explain J SP architecture. [LJIET] (June-14) 7
4. Compare J SP with Servlet. [LJIET] (June-14) 7
5. Write all Implicit Object of J SP in detail. Or Explain the J SP implicit objects with their use. [LJIET] ( JUNE-12)
(OR) Show the use of J SP inbuilt objects: request and response, with their use in application. [LJIET] (Dec-13)
7
6. Explain 1) Scriptlet 2) Declaration 3)Expression 4)EL Expression in detail. [LJIET] 7
7. Explain directive tag. And types of directive in J SP in detail. [LJIET] 7
8. Show the use of J SP page directive tag with its attributes. [LJIET] (Dec-13) 7
9. Explain all J SP Action in detail. [LJIET] 7
10. Explain J STL in detail. [LJIET] (Nov-11) 7
11. Write a J SP page that prints your resume in well formatted form. [LJIET] 7
12. Explain the features of core tag library for JSP. [LJIET] (JUNE-12) 7
13. Explain the following with respect to J SP Unified EL. [LJIET] ( JUNE-12)
i. Value expressions ii. Method expressions
7
14. Write a J SP page that prints your resume in well formatted form. [LJIET] (JUNE-12) 7
15. Write a J SP page that prints your resume in well formatted form. [LJIET] (JUNE-12) 7
16. Give an example showing the use of EL functions. [LJIET] (May-13) 7
17. Write a note on SQL tag library. [LJIET] (June-14) 7
18. Write a note on CORE tag library. [LJIET] (Dec-13) 7
19. What is XML tag library? [LJIET] (Dec-13) Explain the XML core tags and show their use. [LJIET] (May-13)
8
20. Write a J SP page to display your semester mark sheet. Give the necessary files to deploy it. [LJIET] (May-13)
8
21. What is doFilter() method? What are its parameters? Give its use with proper example. [LJIET] (May-13)
6
22. Explain the action tags used to access the J avaBeans from a J SP page with example. [LJIET] (May-13)
7
23. Enlist and explain the purpose and use of action tags in JSP. [LJIET] (Jan-13)
7
24. Explain transaction handling using JSTL. [LJIET] (Jan-13)
7
25. Write a J STL program to parse & display text of XML file. [LJIET] (Jan-13)
7
Chapter 8 Hibernate
1. What is Hibernate? What are the advantages of it? Explain architecture of it in detail. [LJIET] (JUNE-12,Jan-13) 7
2. Write a short not on Hibernate architecture. [LJIET] (June-14, Dec-13) 7
3. What is O/R mapping? What is HQL? What are advantages of HQL? [LJIET] 7
4. Explain the OR mapping in hibernate with example. [LJIET] (May-13, Dec-13) 7
5. What is HQL? How does it differ from SQL? Give its advantages. [LJIET] (May-13) 7

Anda mungkin juga menyukai