What are the restriction imposed on a static method or a static block of code? Ans. A static method should not refer to instance variables without creating an instance and cannot use 'this' operator to refer the instance. - Study24x7
Social learning Network
12 Oct 2023 09:56 AM study24x7 study24x7

What are the restriction imposed on a static method or a static block of code? Ans. A static method should not refer to instance variables without creating an instance and cannot use "this" operator to refer the instance.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles