Online Test for Java

  1. Interfaces can be instantiated.
    True
    False

  1. int x[] = new int[]{10,20,30};<br><br>Arrays can also be created and initialize as in above statement.
    True
    False


  1. Variable name can begin with a letter, "$", or "_".
    True
    False

  1. A constructor that is automatically generated in the absence of explicit constructors called?
    Default Constructor
    Nullary Constructor
    Empty Constructor
    All the above


  1. How many type of Primitive Data Types exist in Java?
    5
    7
    8
    10

  1. If you access an uninitialized local variable will result?
    Syntax Error
    Compile Time Error
    Run Time Error
    No Error

  1. In Java SE 7 and later, underscore characters "_" can appear anywhere between digits in a numerical literal
    True
    False

  1. James Gosling is father of Java?
    True
    False

Social Sharing
Search