Java homework Question 1 All objects inherit the methods from the Object class.
ID: 3673456 • Letter: J
Question
Java homework
Question 1
All objects inherit the methods from the Object class.
Select one:
a. True
b. False
Question 2
In a child class, you can directly access private instance variables declared in the parent class.
Select one:
a. True
b. False
Question 3
In a child class, you can directly invoke private methods declared in the parent class.
Select one:
a. True
b. False
Question 4
Which of the following is the syntax to invoke the parent's constructor?
Select one:
a. super followed by dot
b. super followed by parentheses containing arguments
c. super followed by dot and the superclass constructor name
d. none of the above
Question 5
In a child class constructor, if you do not explicitly call a parent constructor, then no parent constructor is ever called.
Select one:
a. True
b. False
Explanation / Answer
(q1) a
(q2) b
(q3) a
(q4) c
(q5) b
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.