1
Reply

What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

Imran Kabir

Imran Kabir

17y
4.8k
0
Reply

    no need to call the constructor ,it will be executed when ever object is created.but

    if you want to execute function you must call that function.

    constructor name and class name should be same

    function name may be different