Tip Bank

DevX - Software Development Resource

JDBC Transactions

Question: Does “Connection.setAutoCommit(false)” mean “begin a transaction?” Answer: By default, JDBC connections start in autocommit mode. This means that every executed statement is treated as a separate transaction. A transaction

DevX - Software Development Resource

ResultSet Interface

Question: If ResultSet is an interface, then why can we call methods like next(), isLast() etc. without defining the method body anywhere in the program? As I understand it, in

DevX - Software Development Resource

JavaBeans vs. Enterprise JavaBeans

Question: What is the difference between a JavaBean and an Enterprise JavaBean? Answer: It is natural to be confused regarding the relationship between JavaBeans and Enterprise JavaBeans (EJBs), because they

DevX - Software Development Resource

Multidimensional Arrays and Classes

Question: I am currently writing a program that uses multidimensional arrays to store and display data items. My problem is that I cannot seem to change the array values from

DevX - Software Development Resource

Storing InitialContext in Servlet Sessions

Question: Suppose a client of a Web application logs in using a login-handler servlet, and then some back-end operations using EJBs need to be performed. Can I store the initial

DevX - Software Development Resource

Memory Allocation

Question: What is the reason that allocated memory should be explicitly deallocated ? Is there any difference in the way the data with different storage types (stack, heap, static memory)

DevX - Software Development Resource

Avoid querying the ServerVariables collection

You can access a lot of useful information through the ServerVariables collection, but this has a price in terms of performance. More precisely, the first time you reference this collection

DevX - Software Development Resource

Split large HTML tables in smaller ones

In general, a browser can’t render an HTML table before the closing &/TABLE> tag is received. This means that the end user might wait for several seconds before a table