✏️ Explanatory Question

What are the restriction imposed on a static method or a static block of code?

👁 1,112 Views
📘 Detailed Answer
💡

Answer with Explanation

A static method should not refer to instance variables without creating an instance and cannot use "this" operator to refer the instance.