Category General
Valid identifiers
Can a number serve as an identifier in Java? December 21, 2001 Q: Is there a reason I cannot use numbers as part of package and import statements? For example, if my domain name is www.7ofHearts.com, and I want to…
J2SE 1.4 premieres Java’s assertion capabilities, Part 2
Understand the methodology impact of Java’s new assertion facility Assertions are a fairly simple construct added to the soon-to-be released J2SE (Java 2 Platform, Standard Edition) 1.4. As a basic description, an assertion specifies a boolean-typed expression a developer explicitly…
Cut down on logging errors with Jylog
Separate logging from coding for error-free and flexible event logging With the addition of the Logging API in Sun’s JDK 1.4 (Merlin) beta release, the importance of logging is evident. Logging helps you find code failure points and helps you…
Java Product News (updated December 14, 2001)
XMetaL 3 now supports XML Schema; Jcorporate updates eContent; LogicLibrary and TogetherSoft integrate products; and more XMetaL 3 now supports XML Schema December 14 — SoftQuad Software has upgraded XMetaL, an XML content creation software, to version 3. This latest…
Decorate your Java code
A look at the Decorator design pattern Being somewhat of a closet Luddite, I only recently purchased my first cell phone. My phone is faceplate-ready — in other words, I can snap on a stylish faceplate. As far as I…
Diagnose common runtime problems with hprof
Track down the culprits behind your application failures Memory leaks and deadlocks and CPU hogs, oh my! Java application developers often face these runtime problems. They can be particularly daunting in a complex application with multiple threads running through hundreds…
Java 101: Trash talk, Part 1
Java recycles its memory through garbage collection Take out the trash! When it’s applied to computer languages, that command conjures up a different meaning than the one you’re used to. In Java, trash, or garbage, is heap memory that a…
Java Product News (updated December 7, 2001)
Espial releases TV application suite; WebGain updates TopLink with EJB; PsiNaptic launches Jini-based software; and more Espial releases TV application suite December 7 — The Espial Suite for TV is an integrated suite of Java applications from Espial and complements…
Compress your data
How to compress data not found in a file December 7, 2002 Q: This week, I answer two questions concerning data compression in Java. Question 1: How can I zip something that isn’t in a file? Question 2: I read…
Study guide: Trash talk, Part 1
Brush up on Java terms, learn tips and cautions, review homework assignments, and read Jeff’s answers to student questions Glossary of terms finalization A fallback mechanism for cleaning up finite resources. Finalization occurs when the garbage collector calls a resurrectable…