go to previous page   go to home page   hear noise   go to next page

Answer:

The reserved word String has been changed to string . The other changes in case are OK. The class name hello is OK. Class names are your choice. It is usual to start class names with upper case, but OK not to. The characters inside quotes can be (nearly) anything you want.


Fixing Errors

Desktop with Notepad

Usually you will have two windows open on your computer: one for a text editor (such as Notepad or Crimson) and one for the command interpreter.

To fix the syntax error, change the "C" to a "c" and save the file. Now use javac to compile the source file, and if there are no errors, use java to run it.


QUESTION 9:

If you forget to save the file after making the change, and then enter the command javac Hello.java, what will happen?