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

Which is better openjdk or oracle jdk?

457


What is the point of lambda expressions?

476


What are java’s rules regarding tabs, spaces and newline characters?

1012


How do you run an executable jar file?

463


What is java net url?

451






Explain main thread under thread class execution?

483


what is the package for freshers in valuelabs.

5698


What are the advantages of java sockets?

663


Is php faster than java?

485


Why are lambda functions called lambda?

478


What about 'hostile applets'? : java security

486


What is gpt and gpc? : java security

515


Can we write lambda without functional interface?

457


Explain daemon thread.

573


Explain the inheritance principle.

521