In Java, is constructor non static? -
many people constructor in java non-static..! initialize object need constructor. therefore, can use constructor without object constructor must static.
a constructor has instance (this
available). therefore, is, definition, not static.
the jre runs constructor after creates instance.
Comments
Post a Comment