Online Test for Java

  1. Garbage Collection is manual process.
    True
    False

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


  1. The JRE deletes objects when it determines that they are no longer being used. This process is called Garbage Collection.
    True
    False

  1. The Java programming language is a ________?
    Machine Level Language
    High Level Language
    Assembly Level Language
    None of the above


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

  1. Choose best option that describes Constructor.
    Have no return type
    Use name of the class and have no return type
    Use name of the class
    None of the above

  1. Which of the following differentiates between overloaded functions and overridden functions?
    Overloading is a dynamic or runtime binding and overridden is a static or compile time binding.
    Overloading is a static or compile time binding and overriding is dynamic or runtime binding.
    Redefining a function in a friend class is called overloading, while redefining a function in a derived class is called as overridden function.
    Redefining a function in a derived class is called function overloading, while redefining a function in a friend class is called function overriding.

Post Your Question
Social Sharing
Search