Online Test for Java

  1. Java technology is both a programming language and a platform.
    True
    False

  1. A .class file contains bytecodes?
    True
    False


  1. Which method is called first by an applet program?
    start( )
    run( )
    init( )
    begin( )

  1. Java programming is not statically-typed, means all variables should not first be declared before they can be used.
    True
    False

  1. JAR stands for ________.
    Java Application Runner
    Java Archive Runner
    Java Archive
    None of these

  1. How integer literal can expressed binary data?
    int binaryData = b11010;
    int binaryData = bx11010;
    int binaryData = 0b11010;
    int binaryData = xb11010;


  1. Overloaded methods are differentiated by
    Number of arguments
    Data type of arguments
    Number and the Data type of the arguments
    None of the above

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

Post Your Question
Social Sharing
Search