Tip Bank

DevX - Software Development Resource

Overriding Default Object Serialization

Normally, all that is required to perform serialization of an object is to implement the java.io.Serializable interface. However, in some cases, you may wish to control how an object is

DevX - Software Development Resource

Class String Provides Two Member Functions

Class std::string provides two member functions that return the const char * representation of its object: string::c_str() and string::data(). c_str() returns a null-terminated const pointer to char that represents the

DevX - Software Development Resource

Optimize With the Named Return Value

The named return value is an automatic optimization that a compiler applies in order to eliminate the construction and destruction of a temporary object. When a temporary object is copied

DevX - Software Development Resource

Limit the Number of Rows Returned When Using JDBC

If you’re issuing SELECT statements to a database using Java Database Connectivity (JDBC), a huge number of records can be returned by the java.sql.ResultSet. However, sometimes you will want to