Vector vs. Array–the Best of Both Worlds
It’s often pointed out that the Vector class is expensive to use because all of the methods are synchronized. Java 2 has the LinkedList class, which can serve the same
It’s often pointed out that the Vector class is expensive to use because all of the methods are synchronized. Java 2 has the LinkedList class, which can serve the same
You can use the Toolkit’s getScreenSize().width to recompute the size of a component at run time. For example, if you have a Frame that is supposed to have the screen’s
While comparing a field to NULL, a SQL query should use the IS operator in place of the “=” operator. The reason is that if the ANSI_NULLS option is On
An object’s destructor invokes the destructors of its direct base classes and member objects. The invocation occurs in the reverse order of the construction of the subobjects. Note, however, that
Successful software projects do not end with the product’s rollout. In most projects, new versions that are based on their predecessors are periodically released. Moreover, previous versions have to be
You should use caution when automatically initializing class variables. In this example, C1 calls setVal() in its constructor, and C2, a subclass of C1, overrides the method to set a
An implicitly-declared default constructor has an exception specification. The exception specification contains all the exceptions of every other special member functions (for example, the constructors of base class and embedded
When working with collections, use an error handler to easily determine if a given key exists in the collection. If you try to access an item from a collection where
Question: Is there a painless way of converting a Novell 4.1 server to N.T. 4 without just performing a total rebuild? There are no applications running from the server but