| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 ] |
| Articles |
- Review/Preview: 2006 and 2007 in Java by Chris Adamson - [Clicks: 11]
2006 will be remembered as the year that Sun open-sourced Java under the GPL, that EJB 3.0 finally shipped, and that Google surprised everyone with its Google Web Toolkit. But how will history record the results of these events? For the 2006 year-ender, ONJava editor Chris Adamson looks at the year's events through the lens of how they may play out in 2007.
http://www.onjava.com/pub/a/onjava/2006/12/20/2006-onjava-yearender.html - Dec, 2006 - Managing the Java classpath by Elliotte Harold - [Clicks: 9]
The classpath is one of the most complex and infuriating parts of the Java platform, but mastering it is essential to becoming a professional Java programmer. In this article, Elliotte Rusty Harold lays out the intricacies of the classpath and sourcepath and shows you how to master them on Windows.
http://www-128.ibm.com/developerworks/java/library/j-classpath-windows/index.html - Dec, 2006 - Managing the Java classpath by Elliotte Harold - [Clicks: 10]
The classpath is one of the most complex and infuriating parts of the Java platform, but mastering it is essential to becoming a professional Java programmer. In this article, Elliotte Rusty Harold lays out the intricacies of the classpath and sourcepath and shows you how to master them on UNIX and Mac OS X.
http://www-128.ibm.com/developerworks/java/library/j-classpath-unix/ - Dec, 2006 - Set your Java clocks for the new DST by Gili Nachum - [Clicks: 18]
In 2007, the U.S. DST period will last one hour longer, thereby outdating Java's time zone database and presenting potential problems for your application. This article discusses the options available for avoiding any hiccups related to the DST change.
http://www.javaworld.com/javaworld/jw-12-2006/jw-1201-dst.html - Dec, 2006 - Java Technologies in Desktop Applications by Dana Nourie - [Clicks: 17]
This article is aimed at developers new to Java technologies. It describes the technologies involved in creating various types of desktop applications and when you might decide to use them. Watch for future articles that will give details about how to use these technologies and how to use them together. In the meantime, you can get started learning some of the technologies by following links within this article.
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/new_tech/ - Oct, 2006 - Invoking Assembly Language Programs from Java by Biswajit Sarkar - [Clicks: 6]
Nearly everything written about Java Native Interface (JNI) assumes that your native code will be written in C or an offshoot like C++ or Objective-C. But this isn't the only option. For high performance and close-to-the-metal coding, you can call assembly language from JNI. Biswajit Sarkar shows how to do it.
[Includes sample code]
http://today.java.net/pub/a/today/2006/10/19/invoking-assembly-language-from-java.html - Oct, 2006 - Resolving NumberFormat's parsing issues by Joe Sam Shirah - [Clicks: 13]
The Java Standard Edition (SE) API's NumberFormat class lets a program parse formatted text that represents numeric values. It provides out-of-the-box localization with little effort and is a useful tool for every Java programmer. Unfortunately, the underlying DecimalFormat class can cause unexpected loss of signs and data without notification. In this article, Joe Sam Shirah explains the issues and provides code to handle them properly.
[Includes sample code]
http://www-128.ibm.com/developerworks/java/library/j-numberformat/index.html - Oct, 2006 - How Do Java's Lists Measure Up? Comparing Arrays, Lists, and Maps by Keld H. Hansen - [Clicks: 10]
Java offers several solutions for storing objects in an ordered list: arrays, Lists, and Maps -- to mention the best known. But which one is the best for your application? This article analyzes the performance benefits and drawbacks of each solution with real-life, real-time examples.
http://javaboutique.internet.com/tutorials/testing/ - Oct, 2006 - You Are What You Is: Defining Object Identity by Peter Becker - [Clicks: 14]
Even when you know the difference between == and .equals(), that's not the end of the story of object identity in Java. Lots of common-sense assumptions are rife with unpredictable side effects, and in this article Peter Becker takes a new look at just what equality means.
[Includes sample code]
http://today.java.net/pub/a/today/2006/07/27/defining-object-identity.html - Jul, 2006 - The Mac as a Java Development and Execution Platform by Eugene Ciurana - [Clicks: 2]
Nobody can deny that Apple manufactures very handsome machines but there are endless debates about whether they perform better than equivalent machines running Linux or Windows. In this article, Eugene Ciurana shows through a series of tests that, considering equivalent metrics and similar system configurations, different systems can perform better than others due to a variety of factors.
http://www.theserverside.com/tt/articles/article.tss?l=JavaMac - Jul, 2006 - Java and USB by Jeff Friesen - [Clicks: 12]
Want to use a USB device in Java? Some with native abstractions, like mass-storage drives, work as you'd expect, but many devices like webcams and game controllers are simply invisible to the Java programmer. Jeff Friesen looks at two APIs that expose USB devices to Java, then shows how to build a Java USB implementation of your own.
[Includes sample code]
http://today.java.net/pub/a/today/2006/07/06/java-and-usb.html - Jul, 2006 - Creating Content and Protocol Handlers in Java, Part 2 by Anghel Leonard - [Clicks: 16]
Part 2 of this series shows you how to work with an existing Java protocol handler and how to create a new one--all using the server you created in Part 1.
http://javaboutique.internet.com/tutorials/handlers2/ - Jun, 2006 - Add dynamic Java code to your application by Li Yang - [Clicks: 18]
Did you ever wish your Java code could be dynamic like JavaServer Pages? That it could be modified and recompiled at runtime, with your application updating itself on the fly? This article shows you how to make your code dynamic. As such, some of your source code will be deployed, instead of compiled binary code. Any changes to the source code will cause it to be recompiled and the class to be reloaded. Your application will then run on the new class, and users will see the change immediately. This article covers not only runtime source compilation and class reloading, but also a design that separates the dynamic code from its caller. The caller holds a static reference to the dynamic code, and no matter how the dynamic code reloads at runtime, the caller can always access the up-to-date class without updating the reference. In this way, dynamic code changes are transparent to the client.
[Includes source code]
http://www.javaworld.com/javaworld/jw-06-2006/jw-0612-dynamic.html - Jun, 2006 - Develop configurable software applications with ease by Obi Ezechukwu - [Clicks: 24]
The Obix Framework is an XML and Java configuration framework that provides developers with the ability to easily and quickly develop configurable software applications. This tutorial is a quick and short introduction to the framework, which demonstrates how to develop configurable Java Platform, Standard Edition applications. It shows how to create basic XML configuration files and access their values using plain Java objects. It also illustrates how to create modular configuration sets, as well as how to import/include files into one another to create better delineated and reusable configuration data.
[Includes source code]
http://www.javaworld.com/javaworld/jw-06-2006/jw-0605-obix.html - Jun, 2006 - Take Control of Class Loading in Java by Jeff Hanson - [Clicks: 15]
By building a classloading component container framework that isolates Java class loading to a specified jar file, you can be confident that the runtime will load the component versions you expect.
[Includes sample code]
http://www.devx.com/Java/Article/31614 - Jun, 2006 - Crossing borders: Typing strategies beyond the Java model by Bruce Tate - [Clicks: 5]
The Java community is split when it comes to the language's approach to typing. Some love the compile-time error checking, better security, and improved tools -- all features enabled by static typing. Others would prefer a more dynamically typed experience. This time in Crossing borders, you'll look at the dramatically different typing strategies used by two highly productive non-Java languages and at ways you can achieve some typing flexibility in your Java programming.
http://www-128.ibm.com/developerworks/java/library/j-cb05236.html - May, 2006 - Java theory and practice: Dealing with InterruptedException by Brian Goetz - [Clicks: 14]
Many Java language methods, such as Thread.sleep() and Object.wait(), throw InterruptedException. You can't ignore it because it's a checked exception, but what should you do with it? In this month's Java theory and practice, concurrency expert Brian Goetz explains what InterruptedException means, why it is thrown, and what you should do when you catch one.
http://www-128.ibm.com/developerworks/java/library/j-jtp05236.html - May, 2006 - Real-Time Java: An Introduction by Peter Mikhalenko - [Clicks: 15]
"Real-Time" Java doesn't mean "really fast," but it does mean "really predictable," and that's especially important in many fields where an unpredictable response time, usually caused by the Java Virtual Machine's garbage collector, can cost money or lives. Peter Mikhalenko looks at the Real-Time Specification for Java and Sun's first implementation of the spec.
http://www.onjava.com/pub/a/onjava/2006/05/10/real-time-java-introduction.html - May, 2006 - RTSJ - The Real-Time Specification for Java by Don Busch - [Clicks: 9]
This article is a survey of the RTSJ enhancements to the Java platform. It does not intend to provide detailed programming examples of RTSJ usage, but rather to present a flavor of the types of enhancements that the Real-Time Specification for Java provides to be usable in real-time applications.
http://www.ociweb.com/jnb/jnbMay2006.html - May, 2006 - API documentation process series: Creating Javadoc API documentation with indirectly updated source by Mariana Alupului, David Steinmetz, Janis Steinfeld - [Clicks: 15]
The process described in this article is the result of discussions and experimentation by development and documentation teams. These teams recognized that quality application programming interface (API) reference documentation must be a collaboration between the developers and the writers. In addition, the teams sought to have all documentation updates be reflected back into the source code and to have daily Javadoc builds for internal customers include updated documentation. The teams wanted a process that was efficient and reduced duplication of effort.
http://www-128.ibm.com/developerworks/rational/library/06/0425_alupului/index.html - Apr, 2006 - Creating Content and Protocol Handlers in Java by Anghel Leonard - [Clicks: 11]
Did you know that it's possible to simulate this behavior in Java? This article will show you how to create the Internet client, the Internet server (a minimal HTTP server), and a dedicated viewer for a new image type--also known as a content handler. You'll also learn how to use an existing content handler.
http://javaboutique.internet.com/tutorials/handlers/ - Apr, 2006 - Exception-Handling Antipatterns by Tim McCune - [Clicks: 19]
In this article, we'll discuss some fundamental concepts about the different types of Java exceptions and their intended uses. We'll also cover basic logging concepts, especially as they relate to exception handling. Finally, instead of prescribing what to do, we'll focus on what not to do, and take a look at a dozen common exception-handling antipatterns that you are almost certain to find somewhere in your code base.
http://today.java.net/pub/a/today/2006/04/06/exception-handling-antipatterns.html - Apr, 2006 - Java theory and practice: Good housekeeping practices by Brian Goetz - [Clicks: 13]
Garbage collection is nearly everyone's favorite feature of the Java platform; it simplifies development and eliminates entire categories of potential code errors. But while garbage collection generally allows you to ignore resource management, sometimes you have to do some housekeeping on your own. In this month's Java theory and practice, Brian Goetz discusses the limitations of garbage collection and identifies situations when you have to do your own housecleaning.
http://www-128.ibm.com/developerworks/java/library/j-jtp03216.html - Mar, 2006 - What Is Java by Chris Adamson - [Clicks: 16]
Answering the question What is Java? requires a new understanding of the changing relationship between the Java language the virtual machine, as the two are slowly decoupling. ONJava editor Chris Adamson explains.
http://www.onjava.com/pub/a/onjava/2006/03/08/what-is-java.html - Mar, 2006 - Ensure proper version control for serialized objects by Alan Hui - [Clicks: 11]
A Java application often needs to share a runtime object with another application or save an object for later usage in a subsequent session. Java's Serializable interface offers an easy approach for writing a runtime object into a byte stream to send the object to another server or store it in a database. However, without observing version control when the implementation of a serializable class is evolved, this component can unwittingly break release compatibility. As a result, the evolved object breaks the product and customer applications that consume it. This article highlights the issues related to serialization incompatibility and offers guidelines for ensuring the proper use of version control for serialized objects.
http://www.javaworld.com/javaworld/jw-02-2006/jw-0227-control.html - Feb, 2006 - Java theory and practice: Plugging memory leaks with soft references by Brian Goetz - [Clicks: 24]
In the previous installment of Java theory and practice, Java sanitation engineer Brian Goetz examined weak references, which let you put the garbage collector on notice that you want to maintain a reference to an object without preventing it from being garbage collected. This month, he explains another form of Reference object, soft references, which can also enlist the aid of the garbage collector in managing memory usage and eliminating potential memory leaks.
http://www-128.ibm.com/developerworks/java/library/j-jtp01246.html - Jan, 2006