CHAPTER 5 — Introduction to Java

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to home page   go to next page        

revised: 02/18/99, 01/31/00, 05/20/02, 01/09/06, 08/24/2008

CHAPTER 5 — Introduction to Java

The previous chapters have discussed computer hardware, computer software, bits and bytes, machine language, language translation, language interpretation, and virtual machines. This chapter assumes that you know all that and are ready to look at Java.

Chapter Topics:

  • Hello World program
  • Java Bytecodes
  • Java compiler and Java virtual machine
  • Using Notepad to create a source program
  • Running a Java program

These notes are written for Java 2 Standard Edition version 5.0 or higher. Many features were added to this edition and previous versions will not work as well with these notes. If you are installing Java for the first time on your computer, install Java 2 Standard Edition version 6.0 or higher. See Appendix B for information on how to do this.

QUESTION 1:

Can the processor of a computer system directly execute source programs written in Java?