Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. Compiler error

  2. FileNotFoundException thrown at line 1

  3. IOException thrown at line 2

  4. None of these

Reveal answer Fill a bubble to check yourself
D Correct answer
Multiple choice technology programming languages
  1. The Object class does not provide any implementation for the hashCode method; every class must override it

  2. As far as it may be practically possible, the hashCode method defined by the Object class does return distinct integers for distinct objects

  3. For two object references referring to the same object, the hashCode method returns the same integer

  4. It returns a fixed number that internally represents the Object class for the JVM

  5. Only choice D is correct

Reveal answer Fill a bubble to check yourself
B Correct answer