1.

How Compiler And Jvm Can Differentiate Constructor And Method Invocations Of Both Have Same Class Name?

Answer»

By USING new keyword, if new keyword is USED in calling then CONSTRUCTOR is EXECUTED else method is executed.

By using new keyword, if new keyword is used in calling then constructor is executed else method is executed.



Discussion

No Comment Found