0 votes
in JAVA by (6.0k points)

Can static methods reference non-static variables?

1 Answer

0 votes
by (30.8k points)

Can static methods reference non-static variables?

Yes, static methods can reference non-static variables. It can be done by creating an object of the class the variable belongs to.

Related questions

...