|
List of Free SCJA Articles from Ucertify.com |
|
|
Written by Roger Stuart
|
|
Page 5 of 9
The javax.swing package is similar to the java.awt package. It provides
classes to support GUI (Graphical User Interface) features in an
application. It contains more powerful and flexible components than
those in AWT (Abstract Window Toolkit), and includes tabbed panes,
scroll panes, trees, and... [read more..]
In Java, final is a keyword. The value of a variable declared as final
remains unchanged in an application. This means that the variable
should be initialized at the time of its declaration. The syntax for
declaring a variable as final is given below: final
<data-type>... [read more..]
The private access specifier is one that implies that a private class
member, i.e. a class variable or class method declared as private, can
only be accessed by other members of its class. The syntax for
declaring a class member as private is given below: private
<data-type>... [read more..]
The public access specifier is one that implies that a public class
member, i.e. a class variable or class method declared as public, can
also be accessed outside its class. The syntax for declaring a class
member as public is given below: public <data-type>
<member-name> [read more..]
In Java, a class member, i.e. a class variable or a class method, is
normally accessed by every object of its class. However, a class member
declared as static can be accessed before any object of its class is
created. The most common example of a static class member is the main()
method,... [read more..]
The do-while control statement is executed at least once, as the while
conditional expression is at the bottom. The syntax of the do-while
statement is as follows: do { //body of loop } while(condition); In
each iteration, the do-while loop first executes the body of... [read more..]
The Connection interface in JDBC provides methods to handle transaction
processing , to create objects for executing SQL statements, and to
create objects for executing stored procedures. Apart from these, it
also provides some basic error handling methods. Since it is an
interface, it cannot be... [read more..]
COMMIT is a transaction control command that informs a database to
clear a transaction log and save the changes permanently in the
database since the last ROLLBACK or COMMIT. [read more..]
The executeQuery() method of the PreparedStatement interface, under
JDBC, is used to execute SQL statements and stored procedures that
return a result set. The syntax for using the executeQuery() method is
as follows: ResultSet res= prepare.executeQuery() [read more..]
The setTransactionIsolation() method is used to specify the transaction
isolation level. An integer is passed as a parameter specifying the
level of isolation. JDBC supports 5 levels of isolation. [read more..]
|