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

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -