0

Why in Java access to static functions through a object of class (instance) is allowed?

https://code.sololearn.com/crtSB1nUZI73/?ref=app

10/9/2019 8:49:19 AM

UraL

1 Answer

New Answer

+2

You can access static variable and static method both by creating object of class. There is no any restriction. But why we will do if we can access without creating object.