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

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -