| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Articles Books | Examples Tips |
- A Distributed Discussion with Elliotte Rusty Harold by Chris Adamson - [Clicks: 19]
This interview with Elliotte Rusty Harold covers XML, open source Java, IPv6, J2SE 5.0 networking changes, and more.
http://www.onjava.com/pub/a/onjava/2004/12/15/erh-interview.html - Dec, 2004 - Taming Tiger: JDK 5.0 source code licensing by John Zukowski - [Clicks: 20]
Sun recently released the JDK 5.0 source through the Sun Community Source License (SCSL) and Java Research License (JRL). This month, Tiger columnist John Zukowski takes a break from the details of the new release and overviews the licensing terms and what access to the source offers developers. He also provides a quick look at the surprise early access drop for Mustang, the J2SE 6.0 release.
http://www-106.ibm.com/developerworks/java/library/j-tiger11304.html - Nov, 2004 - Behind the Graphics2D: The OpenGL-based Pipeline by Chris Campbell - [Clicks: 10]
This document describes the current state of the OpenGL-based pipeline as of J2SE 5.0. Keep in mind that this story may change a bit in future releases as we find ways to accelerate more operations using OpenGL.
http://today.java.net/pub/a/today/2004/11/12/graphics2d.html - Nov, 2004 - JDK 5 in Practice by Cedric Beust - [Clicks: 61]
Cedric Beust has been in a position to actually code with JDK 5 for over six months. He has written up his thoughts on the new features, and how he has found them to be in practice.
http://www.theserverside.com/blogs/showblog.tss?id=JDK5Practice - Nov, 2004 - Using SSL with Non-Blocking IO by Nuno Santos - [Clicks: 23]
Nuno Santos introduces J2SE 5.0's SSL API and shows how to make it work with NIO.
[Includes sample code]
http://www.onjava.com/pub/a/onjava/2004/11/03/ssl-nio.html - Nov, 2004 - Understanding Network Class Loaders by Qusay H. Mahmoud - [Clicks: 19]
This article provides a tutorial on network class loaders, and: * Discusses the class loader mechanism; * Offers a flavor of the effort involved in developing network class loaders; * Discusses the security issues surrounding network class loaders; * Shows how to protect network class loaders from loading malicious code.
http://java.sun.com/developer/technicalArticles/Networking/classloaders/ - Oct, 2004 - Taming Tiger: Ocean and Synth meet Metal by John Zukowski - [Clicks: 22]
Now that Tiger is an official release, it's time to explore even more exciting differences between the 1.4 version of the Java 2 Standard Edition platform and 5.0 of the Java 2 Development Kit. In this installment of Taming Tiger, UI expert John Zukowski explores the newly available Ocean and Synth look and feels. Now, even non-programmers can develop custom look and feels without writing code or having the benefit of a good eye!
http://www-106.ibm.com/developerworks/java/library/j-tiger10194/ - Oct, 2004 - Taming Tiger: Get environment variables and invoke subprocesses by John Zukowski - [Clicks: 64]
Accessing platform-specific information hasn't always been easy. While you could certainly create processes with Runtime.exec(), dealing with differences across platforms to build parameter sets often led to headaches. In addition, the getenv() method of System has been deprecated since the beginning of Java programming time. Now, as columnist John Zukowski shows you, the new ProcessBuilder class makes accessing platform-specific information easier than ever.
[Includes source code]
http://www-106.ibm.com/developerworks/java/library/j-tiger09304.html - Sep, 2004 - Minding the Queue: Java 1.5 Adds a New Data Structure Interface by Kulvir Singh Bhogal - [Clicks: 31]
The release of Java 1.5 finally provides built-in support for one of the most fundamental data structures in programming - the queue. This article explores the new Queue interface that's been added to the java.util package, demonstrating how to use this new support to streamline your data handling.
[Includes source code]
http://www.devx.com/Java/Article/21983 - Sep, 2004 - Tiger Stripes: Get Ready to Purr Over J2SE 5.0 by Laurence Moroney - [Clicks: 19]
Tiger, the next version of the J2SE SDK, features language improvements, better performance, better debugging and management, near-native GUI representation, and much more. We grab the Tiger by the tail and take a good look at what it has to offer.
http://www.devx.com/Java/Article/21810 - Aug, 2004 - Some Other New Features in Java 2 Standard Edition 1.5 by Dean Wette - [Clicks: 20]
Information in the form of tutorials and articles is readily available for these new additions, and found easily enough. However, J2SE 1.5 also contains other miscellaneous new features that are less conspicuous, but worth noting since they also improve the Java development experience. Those discussed below do not represent a complete list of other new features, but include a sampling of some I find worthwhile or interesting otherwise.
http://www.ociweb.com/jnb/jnbAug2004.html - Aug, 2004 - Taming Tiger: Default exception handling in threads by John Zukowski - [Clicks: 23]
Tracking down unexpected runtime exceptions can be a real drag, and just getting the default thread name and stack trace isn't always enough. In this installment of Taming Tiger, Java developer John Zukowski shows how you can customize the output by replacing the default behavior. He also contrasts the old way of customizing output by subclassing ThreadGroup with the new way by providing your own custom UncaughtExceptionHandler.
http://www-106.ibm.com/developerworks/java/library/j-tiger08104/ - Aug, 2004 - Keeping Up with the Java Joneses by Ian F. Darwin - [Clicks: 13]
Ian Darwin covers a variety of new Java 1.5 features, including J2SE 1.5 threading, the return of printf, and the IDEs NetBeans and Eclipse. Ian wraps up this article with resources to help you keep up with the rest of the Java Joneses.
http://www.onjava.com/pub/a/onjava/2004/07/28/javackbk2.html - Jul, 2004 - Take the Fast Track to J2SE 1.5 by Calvin Austin - [Clicks: 17]
Experts who developed J2SE 1.5 through the JCP held the common goal to make Java the best developer platform available. See some of the new features that can streamline your code.
http://www.ftponline.com/javapro/2004_06/magazine/features/caustin/ - Jun, 2004 - The All-New Java 2 Platform, Standard Edition (J2SE) 1.5 Platform: Programming with the New Language Features in J2SE 1.5 by Qusay H. Mahmoud - [Clicks: 19]
This article looks at the new language features and discusses how they can help you to improve your Java programs. It discusses the motivation of the new features and demonstrates how such features are supposed to be used. The article features a satirical poem written by Joshua Bloch, a Senior Staff Engineer at Sun Microsystems, who is best known for his book Effective Java Programming Language Guide. Bloch's poem is based on The Tiger by William Blake.
http://java.sun.com/developer/technicalArticles/releases/j2se15langfeat/ - Jun, 2004 - J2SE 1.5 in a Nutshell by Calvin Austin - [Clicks: 25]
Java 2 Platform, Standard Edition (J2SE) version 1.5 ("Tiger") is the next major revision to the Java platform and language; it is currently slated to contain 15 component JSRs with nearly 100 other significant updates developed through the Java Community Process (JCP). With so many exciting changes in this release, you may be wondering where you should start. As in previous releases, the comprehensive list of all changes is available in the Release notes guide. This article, from the J2SE team, will take you through the major changes so that you have a grasp of what J2SE 1.5 has to offer, before diving into the API docs.
http://java.sun.com/developer/technicalArticles/releases/j2se15/ - May, 2004 - New features in JDK 1.5 by Daniel Rubio - [Clicks: 24]
Version 1.5 of Sun Microsystems' Java Development Kit (JDK) is set to be released this summer and promises a list of features to ease the development of your Java applications. In this article we'll introduce you to many of the new features and provide code samples, so you can hit the ground running when the final release becomes available.
http://www.devchannel.org/devtoolschannel/04/04/29/1549221.shtml - Apr, 2004 - Taming Tiger, Part 1 by Tarak Modi - [Clicks: 10]
The Java 2 Platform, Standard Edition (J2SE) 1.5 contains new and exciting features, many of which have been long awaited for by Java programmers. J2SE 1.5 - code named "Tiger" - is the most significant revision to the Java language since its original inception. Tarak Modi's primary goal with his three-part series on Tiger is to familiarize readers with J2SE 1.5's most important additions and show how to capitalize on these additions in the real world.
http://www.javaworld.com/javaworld/jw-04-2004/jw-0426-tiger1.html - Apr, 2004 - Taming Tiger: Formatted output by John Zukowski - [Clicks: 17]
Tiger brings printf-style formatted output to the world of Java programming; and this month, columnist John Zukowski discusses all facets of the C-inspired support for printf and format strings.
http://www-106.ibm.com/developerworks/java/library/j-tiger04024.html - Apr, 2004 - The Formatter Class in J2SE 1.5 by Jeff Langr - [Clicks: 23]
Java 1.5 introduces a new class named java.util.Formatter that allows you to do string formatting similar to the printf function in C.
http://www.developer.com/java/other/article.php/3327721 - Mar, 2004 - Reflection on Tiger by Michael Nascimento Santos - [Clicks: 17]
… One of the APIs most radically affected by these changes is the Reflection API. Reflection has existed since JDK 1.1, and many frameworks, libraries, and utilities have been built upon it. This article examines the modifications to the Reflection API that are now available to the public as part of JDK 1.5 beta 1, and shows how you can take advantage of them in your code.
http://today.java.net/pub/a/today/2004/03/08/reflect.html - Mar, 2004 - Taming Tiger: Loading Properties from XML by John Zukowski - [Clicks: 30]
The Properties class is an old favorite, around since the beginning of Java programming time with very few changes. The Tiger release of J2SE enhances this class, which allows you not only to use it to specify key-value pairs on a single line separated by an equal sign, but also to use XML files to load and save those key-value pairs. In this installment of Taming Tiger, John Zukowski demonstrates how to use this updated work horse.
[Includes source code]
http://www-106.ibm.com/developerworks/library/j-tiger02254.html - Feb, 2004 - Taming Tiger: Pre-release of Tiger is now available by John Zukowski - [Clicks: 8]
Sun has quietly released an alpha version of J2SE 1.5, also known as "Tiger," and developer John Zukowski is in the big top ready to start his Tiger-taming act. This new column picks up where Magic with Merlin left off, detailing the changes to the platform and providing examples for quick reference. In this first article, John shows you where to get the pre-release software and how to install it. Share your thoughts on this article with the author and other readers in the accompanying discussion forum.
http://www-106.ibm.com/developerworks/library/j-tiger01204/ - Jan, 2004
- Java Threads, 3rd Edition
by Scott Oaks, Henry Wong - [Clicks: 23]
Threads are essential to Java programming, but learning to use them effectively is a nontrivial task. This new edition of the classic Java Threads shows you how to take full advantage of Java's threading facilities and brings you up-to-date with the watershed changes in Java 2 Standard Edition version 5.0 (J2SE 5.0). It provides a thorough, step-by-step approach to threads programming.
O'Reilly Media, Inc., Paperback - Sep, 2004 - Java 1.5 Tiger: A Developer's Notebook
by David Flanagan, Brett McLaughlin - [Clicks: 24]
This no-nonsense, guide by bestselling Java authors Brett McLaughlin and David Flanagan jumps right into Tiger. Using the task-oriented format of this new series, you'll get complete practical coverage of generics, boxing and unboxing, varargs, enums, annotations, formatting, the for/in loop, concurrency, and more.
O'Reilly Media, Inc., Paperback - Jun, 2004 - Java Reflection in Action
by Ira R. Forman, Nate Forman - [Clicks: 23]
Explaining the Java Reflection API and providing techniques for using it successfully, this guide describes the capabilities that allow a program to examine and modify itself at runtime. The book examines the java.lang.reflect package, explains how you can benefit from its use, and includes a detailed discussion of Java’s dynamic proxy facility. The authors also address less obvious reflective capabilities, such as call stack introspection and the Java class loader. You’ll learn the various ways to use Reflection to generate code and work around the API’s limitations. The book also focuses on performance analysis techniques as well as patterns, and features a peek at what’s new in JDK 1.5. The book begins with simple, teachable examples that allow you to observe the concepts in action and then progresses to more complex examples that relate to problems programmers encounter every day. The authors provide valuable insight into how you can easily solve these problems using Reflection.
Manning Publications, Paperback - May, 2004
- JDK 1.5 Sample Code - [Clicks: 53]
JDK 1.5 has some very useful enhancements. Thanks to Josh Bloch of Sun Microsystems for helpful hints. Early Access: there is an interactive version of this page here where you can post your code fragments to the community at large.
http://zamples.com/JspExplorer/samples/samplesJDK1_5.html - 2004
- Hiding ListResourceBundles from javadoc by John Zukowski - [Clicks: 9]
... The problem is that when you run the javadoc tool on your source tree, the API documentation for the resource bundle class will appear with the other classes if located within the same package. This level of implementation detail should be hidden. That's because if you later change to a PropertyResourceBundle, the public class will be gone, changing the public API for your product. How to you address this issue? In fact, is there a way to hide ListResourceBundles from javadoc? This tip shows you a way to do that.
http://java.sun.com/developer/JDCTechTips/2004/tt1214.html#2 - Dec, 2004 - Resource Bundle Loading by John Zukowski - [Clicks: 22]
A resource bundle is a way of embedding text strings in a language-specific (or more precisely, locale-specific) manner. An earlier Tech Tip discussed the use of resource bundles. What follows is a short refresher. If you have a program that needs a string such as "Hello, World", one approach is to code it in the program. However with resource bundles, you don't hardcode the string. Instead, you put the string in a lookup table, and then your program looks up the string at runtime. If the program runs with a different locale, the lookup finds a different string, if translated, or finds the original string if not translated. This doesn't affect the code in your program -- it runs with the same code, irrespective of locale. The only thing you need to do is create and translate the lookup table of values.
http://java.sun.com/developer/JDCTechTips/2004/tt1214.html#1 - Dec, 2004 - Covariant Return Types by Daniel H. Steinberg - [Clicks: 13]
You cannot have two methods in the same class with signatures that only differ by return type. Until the J2SE 5.0 release, it was also true that a class could not override the return type of the methods it inherits from a superclass. In this tip you will learn about a new feature in J2SE 5.0 that allows covariant return types. What this means is that a method in a subclass may return an object whose type is a subclass of the type returned by the method with the same signature in the superclass. This feature removes the need for excessive type checking and casting.
http://java.sun.com/developer/JDCTechTips/2004/tt1201.html#2 - Dec, 2004 - Scanning Text With java.util.Scanner by Daniel H. Steinberg - [Clicks: 17]
J2SE 5.0 adds classes and methods that can make every day tasks easier to perform. In this tip you will see how the newly added java.util.Scanner class makes it easier to read and parse strings and primitive types using regular expressions.
http://java.sun.com/developer/JDCTechTips/2004/tt1201.html#1 - Dec, 2004 - Converting Images to BMP/WMBP by John Zukowski - [Clicks: 16]
With the growing importance of wireless technologies, J2SE 5.0 now includes support for reading and writing bitmap (BMP) and wireless bitmap (WBMP) image formats. In this tip, you'll learn how to work with these image formats. You'll also create a tool to convert other image formats to BMP, with different compression types.
http://java.sun.com/developer/JDCTechTips/2004/tt1116.html#1 - Nov, 2004 - Pooling Threads to Execute Short Tasks by John Zukowski - [Clicks: 22]
If you develop programs that execute many short-lived tasks, it's wise to take advantage of a technique called thread pooling. Instead of creating a thread for each new task and discarding the thread when the task is done, you can create a pool of threads and give the pool each task to execute. If a thread in the pool is available, the task executes immediately. The thread returns to the pool when the task is done. Otherwise, the task waits for a thread to become available from the pool before executing. J2SE 5.0 offers a new java.util.concurrent package, and in that package there are concurrency utilities that provide a pre-built thread pooling framework.
http://java.sun.com/developer/JDCTechTips/2004/tt1116.html#2 - Nov, 2004 - Changes in Working With ContentPane by Daniel H. Steinberg - [Clicks: 11]
In J2SE 5.0, you can add components to the top level Swing containers. You can also directly set the layout manager and remove components from the container. This tip presents the changes to these top level containers that allow you to use add(), setLayout(), and remove() directly without calling getContentPane(). The tip also discusses why you cannot ignore the ContentPane, even though you no longer have to call for it to add components.
http://java.sun.com/developer/JDCTechTips/2004/tt1102.html#2 - Nov, 2004 - What's New in the Math Class by Daniel H. Steinberg - [Clicks: 17]
There are ten new methods in the java.lang.Math class and java.lang.StrictMath class in J2SE 5.0. The new methods include convenience methods, hyperbolic trigonometric methods, a common logarithm method, a method for calculating the cube root, and a pair of methods to determine the precision of an answer. This tip introduces each of the new methods.
http://java.sun.com/developer/JDCTechTips/2004/tt1102.html#1 - Nov, 2004 - Getting to Know Synth by John Zukowski - [Clicks: 24]
Synth is a new look and feel added to project Swing in J2SE 5.0. Synth is a skinnable (that is, a customizable) look and feel, where the "skin" (that is, the user interface) is controlled by an XML file. Instead of customizing the look and feel by providing default properties to the UIManager in a Properties table, you load in an XML file with component definitions. That means you can create a custom look without writing code.
http://java.sun.com/developer/JDCTechTips/2004/tt1019.html#2 - Oct, 2004 - Queues and Delayed Processing by John Zukowski - [Clicks: 36]
In addition to the new Queue interface in J2SE 5.0, there are some new queue implementations. One such implementation is a DelayQueue. In a DelayQueue, the items in the queue can't be processed until a delay has happened. In this tip, you'll learn about the new Queue interface and the DelayQueue implementation.
http://java.sun.com/developer/JDCTechTips/2004/tt1019.html#1 - Oct, 2004 - Formatting Output With the New Formatter by Daniel H. Steinberg - [Clicks: 14]
J2SE 5.0 introduces a new way to format output that is similar to that of the C language's printf. In this approach, each argument to be formatted is described using a string that begins with % and ends with the formatted object's type. This tip introduces you to the new Formatter class and to the syntax of the formatting that you perform with the class.
http://java.sun.com/developer/JDCTechTips/2004/tt1005.html#2 - Oct, 2004