Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
Page 4 of 4
Well, there you have it: everything you need to know to find where you are and how you got there -- well, at least in your Java code. When coding, this trick is useful for simple logging and tracing needs, but I suggest you check out full-blown logging packages, such as the new Java Logging API or Log4J, which handle more details than just gathering information for you. And one final piece of advice: When traveling, do remember to stop and ask for directions. Your traveling companions may not enjoy your "Zen driving" experiment.
StackTrace.javajava.lang.ThrowablegetStackTrace()java.lang.StackTraceElementjava.util.logging package