|
Page 2 of 9
The _jspService() method of the javax.servlet.jsp.HttpJspPage interface
is invoked every time a new request comes to a JSP page. This method
takes the HttpServletRequest and HttpServletResponse objects as its
arguments. A page author cannot override this method, as its
implementation is provided... [read more..]
The jspDestroy() method of the javax.servlet.jsp.JspPage interface is
invoked by the container when a JSP page is about to be destroyed. This
method is similar to the destroy() method of servlets. It can be
overridden by a page author to perform any cleanup operation such as
closing a database... [read more..]
An association represents a relationship between classes. It represents
a mechanism that allows objects to communicate with each other. It
describes the connection between different classes. Association can be
unidirectional or bi-directional. A unidirectional association implies
that an... [read more..]
Method overloading is a feature that allows a programmer to implement
polymorphism in Java. In method overloading, the name of the methods
are same, but they differ in number or type of parameters passed to
them. When an overloaded method is invoked, java examines the number or
type of... [read more..]
JavaBeans are Java classes that have properties. Properties are private
instance variables. According to JavaBeans, the methods that set the
values of these variables are known as setter methods, and the methods
that retrieve the values of these variables are known as getter
methods. The... [read more..]
Multiplicity refers to cardinality in UML diagrams. It represents the
number of objects in one class related to the number of objects in
another class. A multiplicity can be modeled in the following ways: By
using a specific value such as 1, 2, 4, etc. By using a range of values
such as 2..4... [read more..]
The while loop is the most basic looping statement. It repeats a
statement till its controlling expression is true. The general form of
the while loop is as follows: while (condition) { //body of the loop }
Here, the condition can be any boolean expression. The body of the loop
will... [read more..]
The String length() method returns the number of characters in a
specified string. The general form of this length() method is as
follows: int length() For example, a String is given as follows: String
str="Hello"; Now to obtain the number of characters in str, use the
length()... [read more..]
An interface is a reference type that defines a contract. An interface
body consists of method declarations and constants. All methods and
constants in an interface are public. Interfaces are left completely
unimplemented, i.e., no method in the interface is implemented. All
methods of an... [read more..]
The XOR operator is a bitwise operator. Bitwise operators operate on
numbers as if they are sequence of bits. The XOR operator is denoted by
the ^ symbol. The XOR operator manipulates bits in such a way that if
one of the corresponding bits in two input operands is 1, then the
result is 1.... [read more..]
|