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- ...

Get XML and Java™ from scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.