Home / Questions / Can a static method access non-static variables?
Explanatory Question

Can a static method access non-static variables?

👁 3 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

❌ No.
Static methods can access only static variables and static methods directly.