Archives for the 'Basics' Category

Opening Java WebStart from the Command Line

For scripting or debugging it is sometimes useful to be able to launch WebStart from the command line, rather than from a web browser. “Launching Java WebStart from the Command Line” describes several options for doing this, along with examples for OSX, Linux, and Windows.

4 May 2007 | Basics | No Comments

Generating a Stack Trace with jdb

Every once in a while I run into a situation where the usual means for generating a thread dump does not work, making it difficult to track down pesky deadlocks. Rather than actually figuring out why that happens, here are some notes on using jdb to generate a stack trace: JDB Example: Generating a Thread [...]

25 April 2007 | Basics | No Comments

Testing Strings for Equality

Strings are Objects in Java, but the ability to use literals, along with the String concatenation operator, make them somewhat similar to primitive types. Java also automatically “interns” String literals, meaning that a single String object will be created for a literal that is used multiple times. “String Equality and Interning” describes the effect of [...]

28 January 2004 | Basics | No Comments

DateFormat/SimpleDateFormat Examples

Java’s DateFormat and SimpleDateFormat classes, introduced in Java 1.1, provide a simple way to parse and format dates. “DateFormat and SimpleDateFormat Examples” gives a basic overview of these classes.

4 November 2003 | Basics | No Comments


Categories



Pages

Meta


Copyright 2003-2016 - Philip Isenhour - All code samples may be freely used under the MIT Open-Source License