What are the restriction imposed on a static method or a static block of code?
Short Answer
Views 1023
Answer:
A static method should not refer to instance variables without creating an instance and cannot use "this" operator to refer the instance.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.