Result of Running the Example Java Program

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 previous page   go to home page   go to next page        

Answer:

The example Java program wrote the words "Hello World!" in the command interpreter window.

Result of Running the Example Java Program

Here is what shows on my system when everything has worked correctly (which happens every time, of course):

Saving the File

Your program may not have run correctly. It is possible that you did not type in exactly the characters that were required. The spaces don't particularly matter. But check especially characters like [ and { and ( and ". You have to use the correct ones. Check that upper case and lower case characters match the sample program.

Fuss around for a while to get the program to work. If you just can't get it to work, give up and move on. Probably there is some trival detail that you have overlooked and will see clearly later on. This happens all the time in programming.

If everything worked out perfectly, then go back and do something wrong. This will help you understand what happened later on when you unintentionally do something wrong.

QUESTION 14:

Had enough, for now?