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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -