Java True False Questions

  1. Enumerations are a special data type in Java that allows for a variable to be set to a predefined variable.
    1. True
    2. False
Answer :
True
Explanation:
Added By : Muele

  1. int x[] = new int[]{10,20,30};<br><br>Arrays can also be created and initialize as in above statement.
    1. True
    2. False
Answer :
A
Explanation:
Added By : Preeti


  1. In an instance method or a constructor, "this" is a reference to the current object.
    1. True
    2. False
Answer :
A
Explanation:
Added By : Akash

  1. Garbage Collection is manual process.
    1. True
    2. False
Answer :
B
Explanation:
The Java runtime environment has a garbage collector that periodically frees the memory used by objects that are no longer referenced. The garbage collector does its job automatically when it determines that the time is right.
Added By : Akash

  1. The JRE deletes objects when it determines that they are no longer being used. This process is called Garbage Collection.
    1. True
    2. False
Answer :
A
Explanation:
Added By : Akash

  1. Constructor overloading is not possible in Java.
    1. True
    2. False
Answer :
B
Explanation:
Constructor overloading is possible in Java. The Java compiler differentiates the constructors based on the number and the type of the arguments.
Added By : Akash


  1. Assignment operator is evaluated Left to Right.
    1. True
    2. False
Answer :
B
Explanation:
Added By : Deeksha

  1. All binary operators except for the assignment operators are evaluated from Left to Right
    1. True
    2. False
Answer :
A
Explanation:
Added By : Deeksha

Post Your Question
Social Sharing
Search