Core Java Technology Section Index | Page 117
There are many different ones available, each offering their own feature set. Condensity DashO JCloak ObfuscatePro SourceGuard Zelix KlassMaster more
The National Information Standards Organization (NISO) provides a list of codes at http://www.niso.org/3166.html.
The Unicode Consortium provides a nicely formatted table for display at http://www.unicode.org/unicode/onlinedat/languages.html.more
One thing that slows serialization down considerably is the calculation of the serial version unique identifier, or SUID. This value needs to be calculated when an object is written out, because ...more
Variables declared as static members are not considered part of the state of an object because they are shared by all instances of that class. Classes which need to preserve the value of static m...more
Jini is currently available only through Sun's Java Developer Connection web site at http://developer.java.sun.com/developer/restricted/jini1_1/. The JDC requires you to register (free). You will...more
You cannot. It is part of the security architecture of the Java runtime to ensure never accessing invalid memory space.
To avoid getting an ArrayIndexOutOfBoundsException, you can check for the array length from either the length instance variable or using reflection and calling java.lang.reflect.Array.getLength(),...more
If you have an array of primitives or an array of equivalent objects that implement the Comparable interface, all you need to do is call the sort() method of the java.util.Arrays class. If the cla...more
With the Collections Framework, the new implementations are all unsynchronized by default. If you need synchronized access, you must synchronize things yourself. The Collections class offers a wra...more
Why am I having an InvalidClassException thrown during the serialization of my object which implements the Externalizable interface?
Unlike objects which implement the Serializable interface, it is mandatory for objects implementing the Externalizable interface to also implement a public no-arg constructor. This constructor is ...more
The methods within the Externalizable interface, readExternal() and writeExternal() have public scope. This implies some client object could potentially bypass the Java sandbox mechanisms and ove...more
The Collection Framework implementation classes override the toString() method to print out all the elements of the collection. If you create your own custom implementation, as long as your class ...more
If the Iterator interface extended the Enumeration interface, the Iterator interface would end up with five methods where two methods just called other methods in the interface. The designers of t...more
When retrieving database results, the best collection implementation to use is the LinkedList. The benefits include: Retains the original retrieval order Has quick insertion at the head/tail Doe...more