0% found this document useful (0 votes)
336 views

List of Question Advance Java of 170703 Question Bank

The document contains questions related to Java programming concepts like Swing, JDBC, Networking, RMI, Internationalization and Java Web Applications. It includes questions on Swing components and layouts, JDBC drivers and statements, socket programming, RMI architecture, internationalization in Java and Java web application architecture.

Uploaded by

jayjobanputra80
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
336 views

List of Question Advance Java of 170703 Question Bank

The document contains questions related to Java programming concepts like Swing, JDBC, Networking, RMI, Internationalization and Java Web Applications. It includes questions on Swing components and layouts, JDBC drivers and statements, socket programming, RMI architecture, internationalization in Java and Java web application architecture.

Uploaded by

jayjobanputra80
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Question Bank

Chapter 1 : Introduction To Java2 , Swing Component And MVC


1. 2. 3. 4. 5. What is the difference between applet, application and a servlet? Write any 4 capabilities in brief included in Java 2 that is not in jdk1.1. Explain in brief: i) Java is Architecture Neutral ii) Java is Language of Internet. iii) JRE What is Event ? Explain Event Delegation Model in detail. 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. 6. Explain GridLayout and GridBagLayout in detail with difference and similarities. 7. Explain Look and Feel standard dialog box features of Swing applications. 8. Explain MVC architecture in detail. 9. Write the note on Swing and List its Components and Containers. 10. 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. 11. Explain MVC architecture. List its major advantages. Write a swing program to implement plugable Look & Feel capability. 12. Write the use of JFrame and JInternalFrame. 13. List and explain various swing borders. Using BorderFactory class to set various types of borders for various Jbuttons on Jframe. 14. What is difference between AWT and Swing? Explain MVC Architecture. 15. 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. 16. Write the swing events defined by javax.swing.event package. Explain any two of them? 17. Differentiate Applet and JApplet. Explain Applet life cycle and applet tag, and attribute. 18. 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). 19. Write the Application to add image icon to swing component by taking suitable example. 20. Write Note on different types of Layouts. OR List and explain various swing layouts and components with examples. (Nov-11) 21. Answer the following questions w.r.to Swing.(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.

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. (Nov-11) 2. Explain the use of JDBC and Write the difference between JDBC and ODBC and write the program to create the database class that has one constructor which has code to load the JDBC driver and establish the connection with the database and implement the following methods i) execSQLQuery(sqlstring) ii) execSQLUpdate(sqlstring) 3. Explain types of various JDBC drivers. Using any one type of driver, explain how to create different statement handles. 4. Explain the use of Callable Statement and Prepared Statement with example. (Nov-11) 5. Explain How Transaction processing is handled by JDBC with example. 6. What is metadata? Explain metadata for resultset and database both. Explain the difference between execute(), executeUpdate() and executeBatch() method. 7. Write Java 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. 8. 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). 9. Explain following classes : DriverManager, Connection, Statement, Resultset. 10. 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. 11. Write the steps to connect to the database in java application. 12. What is Java Beans? What is its significance? What different properties are supported by java beans? What is property Editor? How it used to customize bean property? 13. Describe various interfaces and classes used for bean development. 14. What are the difference between Java Bean and basic java class? Explain Java Bean Architecture. 15. State the difference between Introspection and Reflection, Explain java.lang.ref package in detail. 16. What is a java bean? What different types of properties a java bean can have? How a property Editor does works? 17. Explain the following classes: BeanInfo, SimpleBeanInfo, PropertyDescriptor, Introspector. 18. What is JDBC driver? What is its role? List the types of drivers and explain working of type4 driver. Give the different ways to create the JDBC connection with example.(June-12) 19. 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 JDBC application.(June-12) 20. 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.(June-12) 21. What are the differences between Java Bean and basic java class? Explain Java Bean Architecture.(Nov-11)

Chapter 3 Network Programming


1. Explain the difference between datagram socket and multicast socket. Give a code segment of sending DatagramPacket using datagram socket. 2. Explain Socket, ServerSocket, InetAddress classes. Write a java program to find an IP address of the machine on which the program runs. (Nov-11) 3. Explain the function of the following classes: (1) URL (2) URLConnection 4. Explain the following classes with their use. i. URLConnection class ii. DatagramSocket and DatagramPacket class (June-2012) 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. (Nov-11) 6. Explain Socket, ServerSocket, InetAddress classes. Write a java program to find an IP address of the machine on which the program runs.(Nov-11)

Chapter 4 RMI, JNDI, And Internationalization


1. Explain various API classes of RMI frameworks. Write the steps for developing the RMI object. 2. Answer the following question in brief. (i) Why does the RMI implementation create so many sockets when application uses custom socket factories? (ii) It is possible for remote object to be notified when all client disconnect? Explain. (iii) What are the three responsibilities of event source and event listeners? 3. How do RMI clients contact remote RMI servers? And why does callback routine fail with a nested java.net.UnknownHostException? 4. How does UniCastRemote class and MultiCastRemote class activated? What is role of Activation in RMI? 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. (Nov-11) 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. 7. Explain object serialization in detail and the serializable interface. 8. Develop a java application using internationalization (I18N) for printing currency and Date of different countries. 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.

10. What is Internationalization? How Internationalization can be implemented in Java? Give the list of classes and their useful members / methods for implementation of Internationalization. 11. Write note on Locale-specific format conversion classes. 12. Using Internationalization, write a java program for displaying weather information for different states of India. (Nov-11) 13. Explain Collation for sorting text strings according to Locale language. 14. Explain how JNDI works. How JNDI can be used to store various context attribute. Give one example of adding one context entry using JNDI. 15. Explain the significance of JNDI context along with basic lookup in JNDI directory services. 16. What is JNDI? 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 JNDI (Nov-11) 17. .What is RMI? Give the architecture of RMI and discuss the functions of each layer. What is role of RMI registry?(June-12) 18. What is serialization/deserialization of objects? Why do you need it? Give the example with necessary code.(June-12,Nov-11) 19. Write an RMI application where client sends empno and server returns corresponding salary by querying database.(Nov-11)

Chapter 5 Introduction to Java Web Application, architecture


1. Explain Enterprise Architecture and its types with diagram. 2. Explain architecture of J2EE. List out java technologies supported by J2EE along with their applications.(Nov-11) 3. Explain web Application, Web Container (Nov-11), Web Architecture. 4. Explain HTTP Protocol, Request and Response. 5. Explain MVC Architecture with detail.(Nov-11) 6. Give the advantages of n-tier architecture and discuss the objectives of the Enterprise applications.(June-2012) Chapter 6 Java Servlet Explain Servlet Life Cycle in detail.(June-12, Nov-11) What is deployment descriptor? Explain varies tags of DD. What ia the use of DD? What is difference between Attribute and Parameter? Explain ServletConfig, ServletContext, HTTPSession. How it useful for any web application. What do you mean by Session? Write 4 session tracking method in detail. What do you mean by Cookie? How to read and write with Cookie object. Explain varies Servlet Events and its use. How to register listener for web-app in Deployment Descriptor. What do you mean by filter? What is the advantage of it? How to create a filter in your application? What is filter? What is its use? List the different filter interfaces with their important methods.(June-12)

1. 2. 3. 4. 5. 6. 7. 8. 9.

1. List the servlet session level events and show that how servlet destroy event is handled? .(June-12) 2. 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. .(June-12) 3. What are cookies? Write a servlet that reads and prints all the previous cookies and add a cookie with your name. .(June-12) 4. Develop any Servlet application which demonstrates use of session management.(Nov-11)

Chapter 7 JSP, JSTL, XML


5. Explain JSP Life Cycle in detail. 6. Write all Implicit Object of JSP in detail. Or Explain the JSP implicit objects with their use.(June-12) 7. Explain 1) Scriptlet 2) Declaration 3)Expression 4)EL Expression in detail 8. Explain directive tag. And types of directive in JSP in detail. 9. Explain all JSP Action in detail. 10. Explain JSTL in detail. (Nov-11) 11. Write a JSP page that prints your resume in well formatted form. (June-12) 12. Explain the features of core tag library for JSP.(June-12) 13. Explain the following with respect to JSP Unified EL.(June-12) i. Value expressions ii. Method expressions

Chapter 8 Hibernate
1. What is Hibernate? What are the advantages of it? Explain architecture of it in detail?(June12) 2. What is O/R mapping? What is HQL? What are advantages of HQL?

You might also like