Core Java Technology Section Index | Page 117
Where can I find a byte code obfuscator?
There are many different ones available, each offering their
own feature set.
Condensity
DashO
JCloak
ObfuscatePro
SourceGuard
Zelix
KlassMaster
more
Where can I find a list of the ISO-639 language codes used to create Locale objects?
The Unicode Consortium provides a nicely formatted table for display at http://www.unicode.org/unicode/onlinedat/languages.html.more
Where do I find a complete list of ISO-3166 country codes for creating Locale objects?
The National Information Standards Organization (NISO) provides a list of codes at http://www.niso.org/3166.html.
How can I speed up serialization?
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
Where can I get Jini?
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
Why doesn't serialization save the value of static variables?
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
How can I speed up array accesses and turn off array bounds checking?
You cannot. It is part of the security architecture of the Java runtime to ensure never accessing invalid memory space.
How do I do a case-sensitive sort in a language-insensitive manner?
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
How do I get the length of an array?
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
How do I synchronize a collection?
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
What are the security ramifications of using the Externalizable interface?
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
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
How do I print a Collection?
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
Why doesn't the Iterator interface extend the Enumeration interface?
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
Which is the preferred collection class to use for storing database result sets?
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