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
Post a Comment