Java test: Choose

Last modified by Sergiu Dumitriu on 2018/10/10 17:05

Question: Which of the following is true:

  1. In java, an instance field declared public generates a compilation error.
  2. int is the name of a class available in the package java.lang.
  3. Instance variable names may only contain letters and digits.
  4. A class always has a constructor (possibly automatically supplied by the java compiler).
  5. The more comments in a program, the faster the program runs.