O'Reilly logo

XML and Java™ from scratch by Nicholas Chase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Java Basics

Theoretically, we could create style sheets that create a product page for each of our products, but it would be a time-consuming and ultimately unmaintainable nightmare. So, we have reached the point where we'll actually need to start writing programs instead of simply using programs that other people have written.

Diving Right In: Hello World!

It is tradition that the first program new programmers write is to announce their presence to the world. We'll keep up that tradition, starting with a program that simply outputs the text “Hello World!”

Before we write anything, however, let's review the structure of Java and how it affects what we'll need to do.

Java programs are made up of plain text compiled into byte-code, or machine- ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required