Prev Next

Java / Modifiers

Why do we declare a method as static.

When the method has to be accessed even before the instantiating an object for the class, we should declare the method as static.

More Related questions...

Show more question and Answers...


Comments & Discussions