Similar Articles |
|
JavaWorld July 25, 2003 |
Letters to the Editor JavaWorld authors discuss byte code encryption, jEdit's attractive features, method synchronization, and more. |
JavaWorld November 2001 Brian Goetz |
Can ThreadLocal solve the double-checked locking problem? ThreadLocal is indeed an underappreciated tool in the Java Class Library and does solve the thread-safety problems of DCL, but unfortunately it does not meet the performance objectives of DCL -- yet.... |
JavaWorld June 2002 Jeff Friesen |
Achieve strong performance with threads, Part 2 Developers sometimes create multithreaded programs that produce erroneous values or exhibit other strange behaviors. Odd behavior typically arises when a multithreaded program does not use synchronization to serialize thread access to critical code sections. What does it mean to serialize thread access to critical code sections? This article explains Java's synchronization mechanism, and two problems that arise when developers fail to use that mechanism correctly. |
JavaWorld June 2002 |
Letters to the Editor Shouldn't Microsoft get credit where credit is due? How do you program a Java class file into an iPAQ? JavaWorld authors answers those questions and more. |
JavaWorld April 25, 2003 |
Letters to the Editor Authors discuss static versus lazy resolution; HTML/JavaServer Pages (JSP)/servlets versus Swing; thread safety with singletons; and more. |
JavaWorld August 2002 Jeff Friesen |
Achieve strong performance with threads, Part 4 The author completes his exploration of threads by focusing on thread groups, volatility, thread-local variables, timers, and the ThreadDeath class. |
JavaWorld May 2001 Jeff Friesen |
Object-oriented language basics, Part 2 In this article, you'll gain an understanding about fields, parameters, and local variables and learn to declare and access fields and methods... |
JavaWorld July 18, 2003 James Carman |
Get down to business In this article, you will learn how to structure your applications such that modifications to the business object implementation do not require changes to the user interface using a simple framework for accessing your business objects. |
JavaWorld November 2001 |
Letters to the Editor Should you enable assertions in a production system? What's the difference between Jxta and Jini? Do access modifiers prevent inheritance? Is MVC a design pattern? |
JavaWorld March 2002 |
Letters to the Editor JavaWorld readers warn about synchronization; present a Servlet 2.2-compliant solution for mixing protocols in Web apps; suggest using the Data Object Access design pattern with the Value Object design pattern... etc. |
JavaWorld May 2001 Brian Goetz |
Can double-checked locking be fixed? This article looks at some of the commonly proposed fixes and shows how each of them fails to render the DCL idiom thread-safe under the Java Memory Model |
JavaWorld November 2001 Jeff Friesen |
Class and object initialization An exploration of class and object initialization, which introduces the strange concepts of the <clinit> and <init> methods... |
JavaWorld December 2000 Todd Sundsted |
Secure thread collaboration across protection domains When threads collaborate across protection domains, they introduce interesting wrinkles into the science of building secure applications. This month, we present these scenarios and shows how to use the AccessControlContext and GuardedObject classes to build solid solutions... |
JavaWorld October 2001 Tony Loton |
JavaMail quick start This article shows the first steps on the road to building Java-based email applications. If you fancy building your own email client to replace Microsoft Outlook, or a Web-based email system to rival Hotmail, this is the place to start... |
JavaWorld February 2002 Jeff Friesen |
Classes within classes As with fields and methods, Java allows classes to be members of other classes. This article explores Java's support for class nesting... |
JavaWorld February 2003 |
Letters to the Editor In this month's Letters to the Editor, JavaWorld authors answer questions on typesafe enums, getResource, timers, and JNI libraries. |
JavaWorld October 3, 2003 Paul Philion |
Beware the dangers of generic Exceptions Java provides a rich exception-handling framework, but many programmers find it easier to ignore that richness and simply use generic Exceptions. This article explores the risks of throwing, catching, and ignoring generic Exceptions. |
JavaWorld December 2001 Bill Pierce |
Diagnose common runtime problems with hprof Ever been a few days from releasing an application when testing reveals a memory leak or something causing the CPU to spin out of control? Few people realize that the Java 2 JDK provides a useful profiling tool called hprof, which you can use to diagnose these behaviors with minimal fuss... |
JavaWorld August 2000 Gaurav Pal & Sonal Bansal |
Exceptions in Java: Nothing exceptional about them The judicious and proper use of the Java exception-handling mechanism can pay rich dividends by delivering quality code that works. In order to use the powerful error-handling features of Java, users must understand key issues that impact its design and implementation. |
JavaWorld September 19, 2003 Brian Connolly |
Client quality reporting for J2EE Web services This article implements a general-purpose architecture for recording client response times for J2EE Web services. The sample implementation was built using the Sun ONE Application Server and IDE, but the general approach can be easily adapted to other J2EE implementations. |
JavaWorld May 2002 Jeff Friesen |
Achieve strong performance with threads, Part 1 Users expect programs to exhibit strong performance. To satisfy those expectations, your programs often use threads. This article begins a four-part series that examines threads. You receive an introduction to threads, explore the Thread class, and learn about runnables... |
JavaWorld December 2000 Michael C. Daconta |
When Runtime.exec() won't This installment of Java Traps discusses one new pitfall and revisits another from the previous column. Originating in the java.lang package, the pitfall specifically involves problems with the Runtime.exec() method. |
JavaWorld August 29, 2003 |
Letters to the Editor JavaWorld authors discuss byte code encryption; jEdit's attractive features; method synchronization; and more. |
JavaWorld April 2002 Ramnivas Laddad |
I want my AOP!, Part 3 How to use AOP and AspectJ to solve real-world problems by modularizing crosscutting concerns... |
JavaWorld October 2002 Jeff Friesen |
Java's character and assorted string classes support text-processing Text-processing is one of the more frequent activities in which computer programs engage. Java supports that activity via the Character, String, StringBuffer, and StringTokenizer classes. This article explores each class and introduces you to an assortment of those classes' methods. |
JavaWorld May 30, 2003 David Geary |
Facade clears complexity The Facade design pattern simplifies complex APIs by providing a simplified interface to a complex subsystem. This article explores a built-in Swing facade for creating dialog boxes and a custom facade for getting a Swing application off the ground. |
JavaWorld June 6, 2003 Michael Juntao Yuan |
High-availability mobile applications The author first discusses the "occasionally-connected" paradigm for high-availability mobile applications. He explains the roles of mobile databases in this paradigm. Then, he uses an example J2ME application to illustrate the key components of mobile database applications. |
JavaWorld July 2002 Jeff Friesen |
Achieve strong performance with threads, Part 3 How priority relates to thread scheduling, how to use the wait/notify mechanism to coordinate the activities of multiple threads, and how to use Java's thread interruption capability to terminate a running thread. |
JavaWorld December 2001 Brian Goetz |
Exceptional practices, Part 3 Exceptions provide a powerful mechanism for handling error conditions in Java programs. Part 3 covers message catalogs, a technique you can use to simplify the process of localizing your application for foreign markets. The use of message catalogs has additional benefits beyond localization -- they make it practical for documentation writers and human interface designers, rather than developers, to control the error messages. |
JavaWorld February 2001 Brian Goetz |
Double-checked locking: Clever, but broken Many Java programmers are familiar with the double-checked locking idiom, which allows you to perform lazy initialization with reduced synchronization overhead. Though many Java books and articles recommend double-checked locking, unfortunately, it is not guaranteed to work... |
JavaWorld October 2001 Brian Goetz |
Avoid synchronization deadlocks If you understand how your programs use synchronization, and apply consistent rules for acquiring multiple locks simultaneously, you can reduce the likelihood of synchronization deadlock in Java programs... |
JavaWorld November 2000 Geoff Friesen |
Applications, applets, and hybrids This article establishes our bearings and sets sail to the land of applications, applets, and hybrids (an unusual category of Java programs)... |
JavaWorld November 2002 |
Letters to the Editor How do you use Runtime.exec() to return process ID (PID)?... What's wrong with servlets in a Java Message Service (JMS) solution?... How do you put serialVersionUIDs in Serializable classes?... etc. |
JavaWorld September 26, 2003 Sam Mefford |
Overcome Java 1.3-1.4 incompatibilities API version incompatibilities that force you to maintain separate codebases for newer versions can exponentially increase your frustration level. This article demonstrates techniques for overcoming interface version incompatibilities, charting a course for a single codebase. |
JavaWorld February 2001 Robert Nielsen |
Learn Java from Ben Franklin While Benjamin Franklin never wrote a line of Java code, his techniques for better writing can be applied to writing Java. Anyone with at least a basic grasp of Java can use Franklin's learning methods... |
JavaWorld February 2003 Laurence Vanhelsuwe |
Unwrap the package statement's potential The package statement is a very powerful Java language feature. Yet most Java programmers, even experienced ones, fail to correctly exploit this power. Intrigued? Read on and see how a simple language feature can have massive repercussions downstream. |
JavaWorld August 2001 Brian Goetz |
Exceptional practices, Part 1 Exceptions provide a powerful mechanism for handling error conditions in Java programs. However, many developers don't spend enough time thinking about exceptions during the design process; instead, they let the development process drive the program's use of exceptions... |
JavaWorld July 2000 Jacob Weintraub |
Learn how to store data in objects In this second installment of Java 101, Jacob Weintraub delves into storing data in Java and the various ways you can use that data. Specifically, he examines how objects store data and how you can pass data to objects in method calls... |
JavaWorld June 2002 |
Study guide: Achieve strong performance with threads, Part 2 Glossary of terms... Tips and cautions... Homework... Answers to last month's homework... |
JavaWorld July 2002 |
Study guide: Achieve strong performance with threads, Part 3 Glossary of terms... Tips and cautions... Homework... Answers to last month's homework... |
JavaWorld January 2002 |
Letters to the Editor Does J2EE violate fundamental Java concepts? Are Java extensions with XSLT truly beneficial? How do you incorporate a visual mode with Struts and Tiles? Plus, readers debate the value of enums, propose an additional advantage to EJB, and comment on exception-handling... |
JavaWorld September 2000 Michael C. Daconta |
Steer clear of Java pitfalls Avoiding Java programming problems can save you considerable time and frustration when developing programs. This month, Michael Daconta presents two API pitfalls and a long-standing bug. |
Linux Journal June 1, 2007 Dave Berton |
Asynchronous Database Access with Qt 4.x How to code around the default synchronous database access in Qt 4. |
JavaWorld September 5, 2003 Allen Holub |
Why getter and setter methods are evil The getter/setter idiom is a commonplace feature of many Java programs. The use of accessors violates the basic object-oriented principle of encapsulation, so you should avoid using them. This article discusses getter/setter cons and offers an alternative design methodology. |
JavaWorld September 2000 Bruce Eckel |
Everything is an object, Part 1 This two-part article, excerpted from Chapter 2 in Thinking in Java 2nd. ed., moves you to the point where you can write your first Java program. Bruce Eckel gives an overview of the essentials... |
JavaWorld October 2000 Bruce Eckel |
Everything is an object, Part 2 Eckel takes you through name visibility and using components from other libraries; the static keyword; and comments and embedded documentation. By the end, you should be able to build your first Java program... |
Unix Insider September 2000 Jim Mauro |
Scheduling in the user threads library User level threads in Solaris implement a priority scheme and queue-management system distinct from the kernel thread priorities and per-processor dispatch queues that exist in the kernel. This month, Jim Mauro lays the groundwork for discussion on the internals of the threads library, relative to scheduling and thread priorities. |
JavaWorld December 2000 John Zukowski |
Java threads: A comparative book review Java programs are multithreaded, whether you like it or not. This comparative review of six Java thread programming books will help you decide which books are the best read for learning the Java threading library and creating better technical solutions... |
JavaWorld February 2002 Todd E. Sundsted |
With Liberty and single sign-on for all An archipelago of disconnected authentication systems fractures your online persona into dozens or even hundreds of fragmentary identities. The Liberty Alliance Project seeks to solve this identity crisis with a single sign-on solution that will federate these independent authentication systems. But, will the benefits outweigh the costs? |
JavaWorld July 2001 Anil Hemrajani |
Javaware: The challenge of staying current Since the advent of the World Wide Web and Java, the number of new standards, tools, and technologies introduced has been astounding. How do you decide what to specialize in, and how do you manage to stay current in this ever changing landscape? |