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
b The keyword this can be used only in nonstatic code as in nonstatic methods constructors ... View full answer
Get step-by-step solutions from verified subject matter experts
