Thursday, May 23, 2013

Advance Java Questions



JDBC
1.      Describe the various categories of database drivers available. Also explain classes supported for establishing database connection with suitable example.                      [8]
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)                       [9]
3.      Explain types of various JDBC drivers. Using any one type of driver, explain how to create different statement handles.                                                                 [8]
4.      Explain the use of Callable Statement and Prepared Statement with example.       [4]
5.      Explain How Transaction processing is handled by JDBC with example. [8]
6.      What is metadata? Explain metadata for resultset and database both. Explain the difference between execute(), executeUpdate() and executeBatch() method.       [4]
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]
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).                                                [8]
9.      Explain following classes: DriverManager, Connection, Statement, Resultset. [8]
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.                      [8]
11.  How JDBC supports database security?                                                                 [4]
12.  Write the steps to connect to the database in java application.                               [4]
13.  How can we eliminate the problems associated with multiple database updates? [4]
Java Bean
1.      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? [8]
2.      Describe various interfaces and classes used for bean development.                    [8]
3.      What are the difference between Java Bean and basic java class? Explain Java Bean Architecture.                                                                                                   [5]
4.      What is Bean? Why isn’t Bean an Applet?                                                            [5]
5.      State the difference between Introspection and Reflection, Explain java.lang.ref package in detail.                                                                                                   [5]
6.      What is a java bean? What different types of properties a java bean can have? How does a property Editor works?                                                                               [8]
7.      Explain the following classes: BeanInfo, SimpleBeanInfo, PropertyDescriptor, Introspector.                                                                                                 [8]
N/W

1.      Explain the difference between datagram socket and multicast socket. Give a code segment of sending DatagramPacket using datagram socket.                            [8]
2.      Explain how JNDI works. How JNDI can be used to store various context attribute. Give one example of adding one context entry using JNDI.                               [16]
3.      Explain the significance of Protocol Handler and Content Handler? And also explain the Protocol Handler and Content Handler Class associated with URL and URLConnection Class.                                                                                [6]
4.      Explain the significance of JNDI context along with basic lookup in JNDI directory services.                                                                                                           [6]
5.      Explain Socket, ServerSocket, InetAddress classes. Write a java program to find an IP address of the machine on which the program runs.                                        [6]
6.      Explain the function of the following classes:                                                       [9]
      (i) Content Handler                                    (ii) StreamHandler
      (iii) Content HandlerFactory                      (iv) StreamHandlerFactory
      (v) URL                                                     (vi) URLConnection
7.      How SMTP mail works? Explain major components of mail.                                [8]
8.      What is Protocol Handler and Content Handler? Show how getContent() method in URLConnection class works. How protocol handlers and content handlers are used in writing different types of media contents?
9.      What is JNDI? How it can be used for accessing various directory services such as LDAP, NIS, DNS? Write templet class for creating directory context. List the basic operations available in JNDI.
RMI
1.      Explain various API classes of RMI frameworks. Write the steps for developing the RMI object.                                                                                                      [8]
2.      Answer the following question in brief.                                                                 [4]
(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 is an anonymous inner class? Why it is useful when handling events?
(iv) 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]
4.      How does UniCastRemote class and MultiCastRemote class activated? What is role of Activation in RMI?                                                                                       [4]
5.      Explain how RMI works. Also explain parameter passing in RMI with example. [8]
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.                       [8]
Internationalization

1.      Develop a java application using internatiolization (I18N) for printing currency and Date of different countries.
2.      What is a need for Internatiolization? What are the different ways to implement it? Write an java application using internatiolization to print various elective subjects – elec1, elec2, elec3 of CE sem VIII offered at various institutes – LDCE,CITC,SVIT.
3.      What is internatiolization? How internatiolization can be implemented in Java? Give the list of classes and their useful members / methods for implementation of internatiolization.
4.      Write note on Locale-specific format conversion classes.

5.      Using internatiolization, write a java program for displaying weather information for different states of India.

6.       Explain Collation for sorting text strings according to Locale language.

No comments:

Post a Comment