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

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

javascript - Create websocket without connecting -

sharepoint - Accessing files across a shared directory using a Windows service -