Prev Next

Java / Modifiers

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

  • A static method should not refer to instance variables without an instance.
  • cannot use this operator to refer the current instance.

More Related questions...

Show more question and Answers...


Comments & Discussions