Friday, May 23, 2008

JSP Servlet J2EE Questions 16

76. Explain the methods, rebind() and lookup() in Naming class?- rebind() of
the Naming class(found in java. rmi) is used to update the RMI registry on the
server machine. Naming. rebind(”AddSever”, AddServerImpl); lookup() of the Naming
class accepts one argument, the rmi URL and returns a reference to an object of
type AddServerImpl.

77. What is a Java Bean?- A Java Bean is a software component that has been
designed to be reusable in a variety of different environments.

78. What is a Jar file?- Jar file allows to efficiently deploying a set of
classes and their associated resources. The elements in a jar file are compressed,
which makes downloading a Jar file much faster than separately downloading several
uncompressed files. The package java. util. zip contains classes that read and
write jar files.

79. What is BDK?- BDK, Bean Development Kit is a tool that enables to create,
configure and connect a set of set of Beans and it can be used to test Beans
without writing a code.

80. What is JSP?- JSP is a dynamic scripting capability for web pages that
allows Java as well as a few special tags to be embedded into a web file (HTML/XML,
etc). The suffix traditionally ends with .jsp to indicate to the web server that
the file is a JSP files. JSP is a server side technology - you can’t do any client
side validation with it. The advantages are: a) The JSP assists in making the HTML
more functional. Servlets on the other hand allow outputting of HTML but it is a
tedious process. b) It is easy to make a change and then let the JSP capability of
the web server you are using deal with compiling it into a servlet and running it.

No comments:

Useful Information