what diff bw constructor method & method

Answer Posted / prasad

A CONSTRUCTOR METHOD IS A METHOD USED TO PERFORM CUSTOM
INITIALIZATIONS.
AND A NORAMAL METHOD IS HAVING INSTANCE VARIABLES AND METHODS

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is lambda expression used?

653


What is an action class in java?

686


How can I swap two variables without using a third variable?

700


What is a static method?

717


What is the difference between lambda expression and anonymous methods?

645


In hibernate what is the difference between the Session and SessionFactory?

711


How do I install jdk?

634


What is the difference between ec2 and lambda?

646


Is java a framework?

625


What is cdi in java?

657


Where is singleton design pattern used in java?

640


What is csrf in java?

668


What is the difference between a while statement and a do statement?

682


What is tight coupling in java?

680


What is the first argument of the string array in main method?

686