Home » Interview » Technology

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

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

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion