Multiple choice questions: Select the single correct answer for each. 1. Which m
ID: 3569972 • Letter: M
Question
Multiple choice questions: Select the single correct answer for each.
1. Which methods can access the private variables of a class?
2. A member declared with a protected access modifier is not always visible to:
3. A static variable with no access modifier could not be accessed by:
4. Which code could you use to instantiate a new HashMap that associates String keys with Integer values?
5. Which of the following is true of an unchecked exception?
6. Which of the following is not a keyword used in exception handling?
7. If you wanted to perform custom painting in a JPanel, which method would you override?
Explanation / Answer
B. Only methods defined in the same class. D. classes nested inside the class in which it is declared. C. A final method defined within the same package. E. ... = new HashMap(); A. It must be handled at compile time with a try/catch construct. C. final B. drawComponent
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.