4. For the java language which of the following are true for static methods: (yo
ID: 668932 • Letter: 4
Question
4. For the java language which of the following are true for static methods: (you can select up to 4)
a.invoke non-static methods in the class
b.invoke other static methods in the class
c.reference static variables in the class
d.reference instance data varables in the class
6. For the java language, a non-static (instance) method can do what: (you can select up to 4)
a. invoke other non static method also in the class
b. reference static variables in the class
c. invoke static methods in the class
d. reference instance data variables in the class
Explanation / Answer
4.
(a) False
Non-static methods in the class can only be accessed using objects.
(b) True
(c) True
(d) True
6.
(a) True
(b) True
(c) True
(d) True
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.