Sorted by:  

Downloading and Installing the Java Development Kit (JDK)

First you need some Java development software. You can choose from several products. In fact, you may already have one of these products on your own computer. If you don't, you can download the basic software [more…]

Getting Started with Java Programming

The late 1980s saw several advances in software development, and by the early 1990s, many large programming projects were being written from prefab components. Java came along in 1995, so it was natural [more…]

Tackling Error Messages in Java Programming

Sometimes, error messages can strike fear into the heart of even the bravest programmer. Fortunately some helpful, calming advice is here — advice to help you solve the problem when you see one of these [more…]

Java Programming: Telling the Computer to Do Something

In Listing 1, below, you get a blast of Java code. Like all novice programmers, you're expected to gawk humbly at the code. But don't be intimidated. When you get the hang of it, programming is pretty [more…]

Understanding Java's Object-Oriented Programming (OOP)

Java is object-oriented. What does that mean? Unlike languages, such as FORTRAN, which focus on giving the computer imperative "Do this/Do that" commands, object-oriented languages focus on data. Of course [more…]

Avoiding Mistakes in Java

The only people who never make mistakes are the people who never do anything at all. But careful planning can help you avoid some of the most common Java goofs, such as the following. [more…]

What Is Jakarta Struts?

Jakarta Struts is incredibly useful in helping you create excellent Web applications. When you use Jakarta Struts, your applications should work more effectively and have fewer bugs. Just as important [more…]

Understanding Arrays in Java

An array is a set of variables that are referenced using a single variable name combined with an index number. Each item of an array is called an element. [more…]

Making Your Page Layouts Easier with Includes

A sample JSP page that is full of opportunities for refactoring — rewriting portions of code to make the resulting code simpler, more readable, and more efficient — is shown in Listing 1. [more…]

What Is Java, and Why Is It So Great?

Java is a programming language in the tradition of C and C++. As a result, if you have any experience with C or C++, you'll find yourself in familiar territory often as you learn the various features of [more…]

Refining Your Understanding of Classes and Objects

When you program in Java, you work constantly with classes and objects. These two ideas are really important.

Close your eyes for a minute and think about what it means for something to be a chair. [more…]

The Life Cycle of a Java Object

As you work with objects in Java, understanding how objects are born, live their lives, and die is important. This topic is called the life cycle of an object, and it goes something like this: [more…]

Building Custom Code with Java API for XML Binding (JAXB)

You can build customized code with JAXB — the Java API for XML Binding. With JAXB, you take an XML document and you make a Java class file that's perfect for processing the document. When your needs change [more…]

Looking at the Architecture of Enterprise JavaBeans

Everyone is talking about Enterprise JavaBeans (EJBs). Perhaps your business is planning to implement an EJB application, or perhaps you want to discover more about this technology for personal enrichment [more…]

Parsing XML Events with SAX

The word event conjures up all kinds of images. For a nonprogrammer, an event is just "something that happens." If you're used to dealing with windows and frames in Java, then you probably think of an [more…]

Knowing Why Java and XML Mesh

Java and XML are the foundations of a new generation of applications and Web services. In case you're not convinced that both XML and Java enjoy cross-platform portability, look over these facts about [more…]

Working with Related Classes in Java

Many of the classes you'll see in Java have created objects that stand on their own. However, the real power of object-oriented programming lies in its ability to create classes that describe objects that [more…]

Designing the View in Jakarta Struts

If you want your application's users to see your beautiful work, you need to create a visual component for your application. In the Struts implementation of the MVC pattern, you have complete flexibility [more…]

Taking the Document Object Model (DOM) Approach to XML Documents

The dichotomy between linear thinking and holistic thinking separates (respectively) SAX from DOM.

SAX (Simple API for XML) treats an XML document linearly, working through a document piece by piece, from [more…]

Singling Out Stateless Session Beans in Enterprise JavaBeans

Stateless session beans — EJBs that complete a task in a single step — are arguably the simplest of all EJB components. They make minimal demands on the EJB component developer and are used to implement [more…]

Delving Into the Enterprise JavaBeans Deployment Descriptor

Two major versions of Enterprise JavaBeans (EJB) deployment descriptors are currently in circulation. The EJB 1.1 deployment descriptor describes the structure and assembly of EJB applications built to [more…]

Analyzing Performance in Enterprise JavaBeans

Analyzing performance is probably one of the most complex tasks in designing any application. It's an imprecise science because there are many factors that come into play. These are augmented in Enterprise [more…]

Searching for Text in Eclipse

As your Eclipse project gets larger and more complex, being able to find specific snippets of Java code easily becomes important. Luckily, Eclipse offers you multiple ways to search for text in your Java [more…]

Dealing with Javadoc Comments in Eclipse

When you use Eclipse to write Java code, don't forget to edit the Javadoc comments (the things that start with /**). You can add useful information when you edit the Javadoc comments, and as you edit them [more…]

Getting Help from Eclipse

With both the complexity of Java and the nuance of Eclipse, you can't be expected to remember everything. Sometimes, you need a little more help from Eclipse to get your programming going. Luckily, Eclipse [more…]

Sign Up for RSS Feeds

Computers & Software