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

Answer:

No.


Bugs

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

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 writes "Hello World!" on the computer monitor. But you write the above program.

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.

An Earwig

QUESTION 11:

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

go to previous page   go to home page   go to next page