Study

Introduction to Java Programming - Activity#1

  •   0%
  •  0     0     0

  • Where does a java program start executing instructions from?
    main method
  • What do we call the process of finding and fixing errors in programming?
    debugging
  • True or False: Identifiers can start with a number.
    False
  • True or False: Java is case sensitive, which means identifier Hello and hello would have different meaning in Java.
    True
  • Which of the following represents a single line comment in Java?
    //
  • True or False: A program won't run if there is a logic error.
    False
  • The keyword "method" is another name for ______________.
    a function
  • Which of the following is the correct header for the main() method in Java?
    public static void main (String args[])
  • What is the output for the following statements? System.out.println("This question"); System.out.println("is easy!");
    :)
  • Which of the following statements is used to display an output in Java?
    System.out.println();
  • A non-executed line of code is called a Java _____________.
    comment
  • True or False: A Java statement is one or more lines of code terminated by a semicolon.
    True
  • True or False: Syntax errors are caused by incorrectly typed source code.
    True
  • What is the output for the following statements? System.out.print("This question "); System.out.println("is easy!");
    :)