New is used to create new objects. But it’s used carelessly.
Continue reading “Misconceptions about the new Operator”Tag: new operator
Is a Constructor a Method?
Why a constructor is not a method.
No, it’s not. In reflection both extend Executable
, but Constructor
does not extend Method
. It is a common misconception that constructors are methods and often asked about at job interviews.