Tag: programming languages

Questions Related to programming languages

  1. synchronized

  2. friend

  3. implement

  4. throws


Correct Option: A,D
  1. The program does not compile because statement "test = test + test" is illegal.

  2. The program prints "abc"

  3. The program prints "abcabc"

  4. The class does not compile because the top level class cannot be protected.


Correct Option: D