what diff bw constructor method & method

Answer Posted / jasbir singh

a constructor method's name is same as the name of class,
secondly, you cannot manually call the constructor method
after creating the object.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I install java on windows?

651


Do I need jdk or jre?

645


Please can anybody explain what exactly "the project architecture" means???

1874


What is jboss in java?

662


How long can a lambda function run?

677


What is an entity in java?

655


What is phantom memory?

720


What is optional in java 8? What is the use of optional?advantages of java 8 optional?

689


What are the advantages of java sockets?

853


What is jpa project?

627


What is the use of entity class in java?

666


Is php faster than java?

650


What is a controller in java?

633


What is maven in java?

635


For each of the following program segments,give a big zero analysis for the running time 1.For (i=0;i

1699