hi,
What are the restriction imposed on a static method or a static block of code?
Thanks
hi,
Static method can call only other static methods and static variables defined in the class. A static method should not refer to instance variables without creating an instance and cannot use "this" operator to refer the instance.
For more related to Static method in Java program
thanks,
Ads