Similar Articles |
|
JavaWorld September 2000 Jacob Weintraub |
Class action In this installment of Java 101, Jacob Weintraub gives details on how to create a class in Java. He discusses using access modifiers to protect your data from unwanted manipulation, implementing constructors to initialize class instances, and using method overloading when adding behavior to a 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 April 2001 Geoff Friesen |
Object-oriented language basics, Part 1 An introduction to object-oriented programming and how to declare classes and create objects from those classes... |
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 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 September 2001 Jeff Friesen |
Object-oriented language basics, Part 6 Learn why Java's standard class library contains empty interfaces (such as Cloneable and Serializable). Also, examine the power of interfaces and learn why they provide more than a workaround for Java's lack of multiple implementation inheritance support... |
JavaWorld August 2001 Jeff Friesen |
Object-oriented language basics, Part 5 Every Java class has a superclass. In the absence of an extends keyword, Object is that superclass. Object takes center stage as this article presents its 11 methods... |
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 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 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 October 2001 Jeff Friesen |
Object-oriented language basics, Part 7 This final installment of Java 101's object-oriented programming series explores Java's support for polymorphism and investigates how abstract classes accommodate generalities in class hierarchies. |
JavaWorld June 2001 Jeff Friesen |
Object-oriented language basics, Part 3 The author explores composition and demonstrates its value in object-oriented programming. Composition and inheritance are design consepts related in a manner similar to both sides of the same coin... |
JavaWorld December 2000 Robert Nielsen |
Calculating Java dates Whether you are dealing with financial transactions or planning future activities, you need to know how to create, use, and display dates in a Java program. That requires more than simply looking up the appropriate class in the API reference: just one date can easily involve creating objects in three date-related classes. This tutorial shows what you need to know. |
JavaWorld October 2001 |
Java 101 study hall Brush up on Java terms, learn tips and cautions, and enter the first Java 101 reader challenge |
PC Magazine July 13, 2005 Helen Bradley |
Declaring Variables in Excel All variables in Visual Basic must be set with a DIM statement or you will get an error. To make the example work, you need to add the following statements. |
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... |
JavaWorld May 2, 2003 Jeff Friesen |
Datastructures and algorithms, Part 1 After presenting basic datastructure and algorithm concepts, this article focuses on the array datastructure and associated algorithms. The article concludes with the assertion that Java's arrays are objects. |
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 December 2000 Mark Johnson |
C#: A language alternative or just J--?, Part 2 Despite their enormous similarities, Java and C# differ greatly in many language details and also in their basic technical intent. This second article of a two-part series covers C# language constructs and concludes with some speculation on the idea of standardizing C#... |
JavaWorld October 3, 2003 Dawid Weiss |
Discover new dimensions of scripted Java This article presents an extension to BeanShell that turns scripts into real Java classes that support inheritance, Java reflection, method overriding, and so on. The extension is designed to be fully transparent to the Java application using it. |
JavaWorld September 2002 Jeff Friesen |
Packages organize classes and interfaces Professional Java developers organize frequently used classes and interfaces in class libraries for later reuse. Learn what constitutes a package, how to create a package of classes and interfaces, how to import packaged classes and interfaces into a program, and more. |
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 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 December 2000 Geoff Friesen |
Non-object-oriented language basics, Part 1 This column separates Java's language features into two categories: non-object-oriented programming and object-oriented programming. This article explores comments, identifiers, data types, literals, and variables... |
JavaWorld November 2001 Michael C. Daconta |
Practice makes perfect One pitfall stumbled on while porting an Extensible User Interface Language (XUL) game to Java and two pitfalls sent in by readers... |
JavaWorld July 25, 2003 David Geary |
Make your apps fly Allocating numerous objects can degrade your application's performance. This article shows how to implement the Flyweight design pattern to greatly reduce the number of objects your application creates, which decreases your app's memory footprint and increases performance. |
JavaWorld January 2001 Wm. Paul Rogers |
Thanks type and gentle class Confusing the concepts of object and class deserves an askance look. Failing to distinguish between type and class, however, typically goes unnoticed. Yet the battle to separate implementation and interface concerns requires type-oriented thinking... |
JavaWorld July 2001 Tarak Modi |
Clean up your wire protocol with SOAP, Part 4 Here's a framework based on the dynamic proxy classes in the Java 2 Platform, Version 1.3. This framework will make creating SOAP clients just as easy and intuitive as creating SOAP services... |
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 2001 Geoff Friesen |
Non-object-oriented language basics, Part 3 This exploration of Java's non-object-oriented language entities wraps up with a tour of statements. It provides an in-depth discussion on those source code constructs and demonstrates their proper use through a large example program... |
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. |
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 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. |
Salon.com January 18, 2001 Simson Garfinkel |
Java fans fight back OK, Sun's programming language does have some good points, but it's still a long way from perfect... |
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 July 2000 Todd M. Greanier |
Flatten your objects The Java Serialization API is used by many other Java APIs (like RMI and JavaBeans) to persist objects beyond the duration of a running virtual machine. This article tries to demystify the secrets of the Java Serialization API. |
JavaWorld July 2001 Michael Cymerman |
Device programming with MIDP, Part 3 This article explores the methods of communication between the MIDlet and the world at large. Using the APIs contained in Java 2, Micro Edition's Mobile Information Device Profile (MIDP), developers can interact with external systems... |
JavaWorld November 2000 Abhilash Koneri |
Eliminate tedious programming: Recover data with XML and Reflection The parsing of ResultSets forms one of the most significant tasks involved in retrieving data from a database. But, as a repetitious and uninteresting assignment, it is not a favorite among developers. How to supplant ResultSet parsing in the data access objects... |
JavaWorld February 2003 Jeff Friesen |
Regular expressions simplify pattern-matching code To help you write simpler pattern-matching code, Java provides regular expressions. After introducing you to terminology and the java.util.regex package, the author explores many regular expression constructs supported by that package's Pattern class. |
JavaWorld October 2001 David Geary |
Amaze your developer friends with design patterns Design patterns are proven techniques for implementing robust, malleable, reusable, and extensible object-oriented software. This article introduces design patterns to Java developers and explores Strategy, Composite, and Decorator -- three common, yet powerful, design patterns in the JDK... |
JavaWorld May 2001 Thierry Manfe |
Embed Java code into your native apps Embedding Java code into a Unix application developed in C or C++ can create problems related to GUIs or threads synchronization. Here's a solution that relies on a good understanding of the Unix APIs and robust software architecture... |
JavaWorld June 2001 Todd Sundsted |
Secure your Java apps from end to end, Part 1 The foundation of Java security: virtual machine and byte code security... |
Unix Insider November 2000 Cameron Laird, Kathryn Soraiz & Derek Lac |
Scripting systems unite An introduction to Silk, the programming language that unites Java and Scheme... |
JavaWorld February 2001 Brian Goetz |
Design for performance, Part 2: Reduce object creation Many common Java performance problems stem from class design decisions made early in the design process, long before most developers even start thinking about performance. The author discusses some techniques for reducing temporary object creation... |
JavaWorld August 2001 Bill W. Davis |
Dynamically extend Java applications Do you want to write programs that can be extended without source code changes? The techniques described in this article show you how to use interfaces and dynamic class loading to create highly extensible systems... |
JavaWorld February 2001 Erwin Vervaet |
Java: It's a good thing In response to Simson Garfinkel's article 'Java: Slow, Ugly, and Irrelevant', the author takes a more realistic look at Java's situation. Indeed, Java is far from perfect. But when you take the time to look beyond the flames and the hype, what is left is an exciting and competitive language... |
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 December 2000 Victor Okunev |
Validation with pure Java The importance of employing a good data-validation framework cannot be overestimated. The core Java API has everything you need to solve this problem in the most elegant way. |
JavaWorld November 2000 Brian Goetz |
Tweak your IO performance for faster runtime Although poor performance claims have plagued Java for some time, Java programs can run just as quickly as programs written in C and C++ if developers pay attention to performance issues throughout the development cycle, especially in IO... |
Linux Journal June 1, 2007 Ariel Ortiz |
An Introduction to Metaprogramming How to write programs that write programs. Metaprogramming at first may seem to be an advanced topic, suitable only for programming language gurus, but it's not really that difficult once you know how to use the adequate tools. |