Question: Which statement is true? Select the one correct answer. (a) A static method can call other non-static methods in the same class by using the

Which statement is true?

Select the one correct answer.

(a) A static method can call other non-static methods in the same class by using the this keyword.

(b) A class may contain both static and non-static variables, and both static and non-static methods.

(c) Each object of a class has its own instance of the static variables declared in the class.

(d) Instance methods may access local variables of static methods.

(e) All methods in a class are implicitly passed the this reference as an argument, when invoked.

Step by Step Solution

3.33 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

b The keyword this can be used only in nonstatic code as in nonstatic methods constructors ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!