| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Articles |
- Combine safe publication and effective immutability to improve performance by Andrew Citron, Chris Seekamp, Martin Presler-Marshall - [Clicks: 12]
The typical way of enabling multiple threads to share access to a mutable collection -- synchronizing on access to the collection -- can become a performance bottleneck. Learn a technique you can use in Java 5.0 and later to minimize this bottleneck for data structures that are read frequently but updated infrequently.
http://www.ibm.com/developerworks/java/library/j-hashmap.html - Oct, 2007 - Using the Queue Collection Effectively by Thribhuvan Thakur - [Clicks: 28]
Now that the generalized Collection API and the Queue specialization are supported in the Java 1.5 and 1.6 JDKs, you'll want to know how to characterize and categorize Queue collections for their performance--as well as how to use them in multi-threaded environments.
http://javaboutique.internet.com/tutorials/queue/ - Sep, 2007 - Object Integrity & Security: Error & Exceptions by Matt Weisfeld - [Clicks: 4]
One of the advantages of using object-oriented languages is that much of the error/exception handling is built directly into the language itself. Thus, many of these issues can be handled during the design of the application -- and not when the application crashes in the hands of a user.
http://www.developer.com/java/other/article.php/3698026 - Sep, 2007 - Handling Anomalies: Errors and Exceptions by Matt Weisfeld - [Clicks: 11]
When things go wrong in an application, what should the code do? First and foremost, you want to make sure that an application does not crash and remains in a safe-state. When an unexpected event does occur, the application should either fix itself and continue, or exit gracefully without losing any data that’s important to the user.
http://www.developer.com/java/other/article.php/3692751 - Aug, 2007 - Object Integrity & Security: Duplicating Objects, Part 3 by Matt Weisfeld - [Clicks: 3]
It is important to realize that duplicating objects can be a complicated process, and that not fully understanding the process can lead to problems. These problems are akin to the difference between a syntax error and a logic error. You can have code that is compiling and executing, yet the results can be totally incorrect and possibly dangerous.
http://www.developer.com/lang/article.php/3687321 - Jul, 2007 - The Java XPath API by Elliotte Rusty Harold - [Clicks: 27]
XPath expressions are much easier to write than detailed Document Object Model (DOM) navigation code. When you need to extract information from an XML document, the quickest and simplest way is to embed an XPath expression inside your Java program. Java 5 introduces the javax.xml.xpath package, an XML object-model independent library for querying documents with XPath.
http://www.ibm.com/developerworks/xml/library/x-javaxpathapi.html - Jun, 2007 - Java theory and practice: Managing volatility by Brian Goetz - [Clicks: 26]
The Java language contains two intrinsic synchronization mechanisms: synchronized blocks (and methods) and volatile variables. Both are provided for the purpose of rendering code thread-safe. Volatile variables are the weaker (but sometimes simpler or less expensive) of the two -- but also easier to use incorrectly. In this installment of Java theory and practice, Brian Goetz explores some patterns for using volatile variables correctly and offers some warnings about the limits of its applicability.
http://www.ibm.com/developerworks/java/library/j-jtp06197.html - Jun, 2007 - Object Integrity & Security: Duplicating Objects: Part 2 by Matt Weisfeld - [Clicks: 8]
Copying primitives such as numbers is mostly straightforward, copying objects is a more complicated task. Completely duplicating an object is a multi-step process. Work through the examples here to learn how this is done.
http://www.developer.com/design/article.php/3682571 - Jun, 2007 - Using Java to Crack Office 2007 by Ted Neward - [Clicks: 15]
Office file manipulation used to be difficult, but since Office 2007, Word, Excel and Powerpoint files can be read and written without anything more complicated than the native JDK itself because Office 2007 documents are now nothing more than ZIP files of XML documents. Ted Neward demonstrates this in action.
[Includes sample code]
http://www.infoq.com/articles/cracking-office-2007-with-java - Jun, 2007 - The Working Developer's Guide to Java Bytecode by Ted Neward - [Clicks: 13]
Ted Neward shows you how to examine the JVM bytecode set, disassemble some code to see how it works, and play with some tools that allow us to manipulate bytecode directly.
http://www.theserverside.com/tt/articles/article.tss?l=GuideJavaBytecode - May, 2007 - Object Integrity & Security: Duplicating Objects by Matt Weisfeld - [Clicks: 18]
Explore the issues pertaining to duplicating, or cloning, objects.
http://www.developer.com/design/article.php/3675326 - May, 2007 - Java Language Integrity & Security: Fine Tuning Bytecodes by Matt Weisfeld - [Clicks: 17]
Explore how you can process the bytecodes produced by the compiler to help you improve performance, security, intellectual property protection, and readability issues.
http://www.developer.com/design/article.php/3669651 - Apr, 2007 - Image I/O Utilities Grab Bag by Jeff Friesen - [Clicks: 10]
Sometimes what you need is not an enormous framework, but a grab bag of bite-size morsels. That's what Jeff Friesen has in this article, which offers three commonly needed graphic conveniences, implemented with the Image I/O package.
http://today.java.net/pub/a/today/2007/03/06/imageio-utilities-grab-bag.html - Mar, 2007 - Java Language Integrity & Security: Uncovering Bytecodes by Matt Weisfeld - [Clicks: 12]
Understanding what goes on under the hood of an application is a beneficial process. Explore how a class file is designed and how you can disassemble it.
http://www.developer.com/java/ent/article.php/3663526 - Mar, 2007 - Java theory and practice: Using Java 5 language features in earlier JDKs by Brian Goetz - [Clicks: 21]
Java 5 added a number of powerful language features: generics, enumerations, annotations, autoboxing, and the enhanced for loop. However, many shops are still tied to JDK 1.4 or earlier and may be for some time to come. But it's still be possible for those developers to take advantage of these powerful language features while continuing to deploy on earlier JVMs. Brian Goetz returns from his hiatus in this installment of Java theory and practice to demonstrate how.
http://www-128.ibm.com/developerworks/java/library/j-jtp02277.html - Feb, 2007 - Implement a relaxed immutability model by Raffaello Giulietti - [Clicks: 12]
Immutable objects are a great help for writing thread-safe software. In the Java language, the primary mechanism for guaranteeing immutability is the use of final fields. But final fields must be set in constructors, and in some cases, this requirement is too restrictive. This article shows an efficient way to implement a slightly more relaxed model of immutability, using normal cached fields whose values can still be accessed safely without synchronization.
http://www-128.ibm.com/developerworks/java/library/j-immutability.html - Feb, 2007 - Architecture of a Highly Scalable NIO-Based Server by Gregor Roth - [Clicks: 24]
If you're writing low-level server code, you'll probably make the decision early to use NIO for high-performance I/O. But are you prepared to address the threading concerns to get the most out of NIO while serving the greatest number of concurrent users? Gregor Roth looks at how an event-driven architecture can improve your performance and capacity.
http://today.java.net/pub/a/today/2007/02/13/architecture-of-highly-scalable-nio-server.html - Feb, 2007 - SQL Simplicity for Java Value Mapping by Vlad Patryshev - [Clicks: 17]
When you have a cascading map in Java, which index goes first and how do you scan the whole collection? Use Java maps that have two sets of keys.
http://www.devx.com/Java/Article/33557 - Jan, 2007 - Java 5's DelayQueue by Jeff Langr - [Clicks: 21]
See how the power of the Java 5 queue implementations, including DelayQueue, as they define constructs for common queueing needs in a thread-safe manner.
http://www.developer.com/java/other/article.php/3654721 - Jan, 2007 - Java Performance & Security: Dynamically Loaded Classes by Matt Weisfeld - [Clicks: 24]
Explore the performance gains as well as the security issues pertaining to dynamically loaded classes.
http://www.developer.com/java/data/article.php/3652286 - Jan, 2007 - Discovering a Java Application's Security Requirements by Mark Petrovic - [Clicks: 20]
Mark Petrovic shows how to use a development-time SecurityManager that logs your applications' calls and builds a suitable Java security policy file.
[Includes sample code]
http://www.onjava.com/pub/a/onjava/2007/01/03/discovering-java-security-requirements.html - Jan, 2007