Bugs

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.

Answer:

No.

Bugs

Just because a program compiles and runs does not mean that it is correct. For example, say that your assignment is to create a program that will write "Hello World!" on the computer monitor. Here is the program you have created:

class Hello
{
  public static void main ( String[] args )
  {
    System.out.println("Hello Neptune!");
  }
}

When a program compiles without any syntax errors, but does not perform as expected when it runs, the program is said to have a bug.

QUESTION 9:

  1. Will this program compile without syntax errors?
  2. Will this program run?
  3. Does the program meet the assignment?