The StringTokenizer class allows an application to break a string into tokens. Consider that you have a string which has delimiters in it and you want to break it into tokens. You can achieve this using String Tokenizer class, just in few lines of code. The same thing can also be achieved by standard string [...]
Archive for February, 2008
StringTokenizer
Posted in Java, tagged Java, stringtokenizer, technical on February 8, 2008 | 7 Comments »
Statement Object in JDBC
Posted in JDBC on February 7, 2008 | 2 Comments »
A Statement object is used to send SQL statements to a database. It will act as containers for executing SQL statements on a given connection.
There are three kinds of Statement objects.
1. Statement
2. PreparedStatement
It inherits from Statement.
3. CallableStatement
It inherits from PreparedStatement.
Statement :
A Statement object is used to execute a simple SQL statement with no parameters The [...]
Basic Steps in Using JDBC
Posted in JDBC on February 1, 2008 | 4 Comments »
First of all we have to know what is JDBC
What is JDBC?
JDBC is a piece of software that knows how to talk to the actual database server. JDBC is a registered trade mark.
Steps for JDBC
There are seven standard steps in querying databases:
Load the JDBC driver.
Define the connection URL.
Establish the connection.
Create a statement object.
Execute a query [...]