Online Test for Java

  1. Which of the following is NOT a keyword in Java?
    Instanceof
    emun
    transient
    strictfp


  1. A .class file contains bytecodes?
    True
    False

  1. All binary operators except for the assignment operators are evaluated from Left to Right
    True
    False


  1. To override a method in Java, we need to define a method in sub class with the
    same name, same number of arguments having the same data types as a method in the super class
    different name, same number of arguments having the same data type as a method in the super class
    same name but different number of arguments as a method in the super class
    same name, same number of arguments but different data types as a method in the super class

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

  1. Garbage Collection is manual process.
    True
    False

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

Post Your Question
Social Sharing
Search