java - How do static methods run? -


how static methods run in java? invoke them using class name, , not create object them, these objects can "run", not methods!

in case of static method java loads method when class loaded , shares method objects , that's why object not necessary.
it's not necessary have object in order run method.

and no, it's not object runs. it's method operation , objects or classes hold them property.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -