Because static code are loaded in when class gets loaded via classloader and at that time, no instance of that class would have got created... hence compiler finds the issue and complains.
No comments:
Post a Comment