JavaLanguage Section Index | Page 34

From a language specification perspective, there is no limit. From a class file perspective, there is a 64K byte limit to names. For ASCII identifiers, that would be 65535. For identifiers beyond ...more

This was accidently added to to the Java 1.0.2 version and removed from subsequent releases. It had the same behavior of the protected modifier in C++, keeping access to subclasses, but not packag...more

The classes in the java.lang package are so important that the compiler implicitly imports all the classes there. This ensures classes in the unnamed package are not accidently used instead of the...more

When you declare a method to be final, it can never be overridden in subclasses. This is usually done for security or performance reasons, providing additional information to the JIT compiler or H...more

You cannot find out the installed packages. You can find out the packages with loaded classes with the help of the Package class. The following displays the loaded packages as well as their vendor...more

While you can always purchase the book, Sun provides this for free from their web site at http://java.sun.com/docs/books/jls/html/index.html. Be sure to look at the changes for Java 1.1 at http://...more

The best book reference for Garbage Collection is: Garbage Collection - Algorithms for Automatic Dynamic Memory Management by Jones and Lins.
It's available via Amazon and FatBrain.
After readin...more

Generally, you won't need to - the most common usage of destructors in C++ is to free memory - and java will do that for you automatically via "garbage collection" (GC). :)
That said, if you have...more

Strictly, you can't force it.
You can, however, call System.gc(), which is a "hint" to the runtime engine that now might be a good time to run the GC. Some implementations take that hint to hear...more