1

Methods declared as static have several restrictions:~~~1) They can only call other static methods.~~~2) They must only access static data.~~~3) They cannot refer to this or super in any way~~~Which of these are true?

Correct Answer: 1, 2 and 3.

Make the most of this question

This page focuses on one JAVA MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

JAVA MCQs MCQ: Methods declared as static have several restrictions:~~~1) They can only call other static methods.~~~2) They must only access static data.~~~3) They cannot refer to this or super in any way~~~Which of these are true? | Extra Education