Game Preview

Java Quiz

  •  English    21     Public
    Java basics
  •   Study   Slideshow
  • Java feature, which transmit the characteristic from parent class to the child class
    Inheritance
  •  10
  • It is used at method declaration and definition to specify that the method does not return any type.
    void
  •  10
  • It is used to define a block of code to be tested for errors while it is being executed.
    try
  •  10
  • It allows you to define a block of code to be executed if an error occurs in the try block.
    catch
  •  10
  • It is an access modifier used for classes, attributes, methods and constructors, making them accessible by any other class.
    public
  •  10
  • It refers to an expression or variable that can have only a true or false value.
    boolean
  •  10
  • It repeatedly executes a target statement as long as a given condition is true.
    while
  •  10
  • It is an access modifier used for variables, methods,and inner classes. It is accessible only within the same class.
    private
  •  10
  • The keyword "method" is another name for ...
    function
  •  10
  • What is the expected output of the following expression? 19 % (2 + 3)
    4
  •  10
  • What is the output for the above code segment?
    10
  •  10
  • A sequence of eight bits.
    byte
  •  10
  • A sequence of statements that has a name, may have formal parameters, and may return a value
    method
  •  10
  • What is the output of the following code segment?
    21
  •  10
  • a sequence of characters
    String
  •  10
  • What value is stored in each of the 5 elements in the following array?
    0
  •  10