Q.

Which of the following is TRUE?

A. In java, an instance field declared public generates a compilation error.
B. int is the name of a class available in the package java.lang
C. Instance variable names may only contain letters and digits.
D. A class has always a constructor (possibly automatically supplied by the java compiler).
Answer» D. A class has always a constructor (possibly automatically supplied by the java compiler).
1.8k
0
Do you find this helpful?
2

View all MCQs in

Java Programming

Discussion

No comments yet