Question: How to call a Stored Procedure from JDBC?
Answer: The first step is to create a CallableStatement object. As with Statement an and PreparedStatement objects, this is done with an open Connection object. A CallableStatement object contains a call to a stored procedure.
E.g.
CallableStatement cs = con.prepareCall("{call SHOW_SUPPLIERS}");
ResultSet rs = cs.executeQuery();
Question: Why is XML such an important development?
Answer: It removes two constraints which were holding back Web developments:
1. § dependence on a single, inflexible document type (HTML) which was being much abused for tasks it was never designed for;
2. the complexity of full SGML, whose syntax allows many powerful but hard-to-program options.
§ XML allows the flexible development of user-defined document types. It provides a robust, non-proprietary, persistent, and verifiable file format for the storage and transmission of text and data both on and off the Web; and it removes the more complex options of SGML, making it easier to program for.
Question: What is the difference between URL instance and URLConnection instance? (Networking)
Answer: A URL instance represents the location of a resource, and a URLConnection instance represents a link for accessing or communicating with the resource at the location.
Question: What are the two important TCP Socket classes? (Networking)
Answer: Socket and ServerSocket. ServerSocket is used for normal two-way socket communication. Socket class allows us to read and write through the sockets. getInputStream() and getOutputStream() are the two methods available in Socket class.
Question: Can RMI and Corba based applications interact ?
Answer: Yes they can. RMI is available with IIOP as the transport protocol instead of JRMP.
Question: How many types of protocol implementations does RMI have?
Answer: RMI has at least three protocol implementations: Java Remote Method Protocol(JRMP), Internet Inter ORB Protocol(IIOP), and Jini Extensible Remote Invocation(JERI). These are alternatives, not part of the same thing, All three are indeed layer 6 protocols for those who are still speaking OSI reference model.
Question: Does RMI-IIOP support dynamic downloading of classes?
Answer: No, RMI-IIOP doesn't support dynamic downloading of the classes as it is done with CORBA in DII (Dynamic Interface Invocation).Actually RMI-IIOP combines the usability of Java Remote Method Invocation with the interoperability of the Internet Inter-ORB Protocol (IIOP).So in order to attain this interoperability between RMI and CORBA,some of the features that are supported by RMI but not CORBA and vice versa are eliminated from the RMI-IIOP specification.
Wednesday, October 24, 2007
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment