http://amzn.to/2kpkwZx

What is the difference between constructors and normal methods?


Ankita Agrawal    Fri Mar 22 23:17:05 IST 2013


What is the difference between constructors and normal methods?


Reply By- Anoop kumar awasthi    Sat Mar 23 08:04:10 IST 2013


Many differences between method and constructors some are given below. You need to call method explicitly but constructor is called implicitly by Java programming language during object instantiation. Name of constructor must be same with name of the Class but there is no such requirement for method in Java. methods can have any arbitrary name in Java. Constructor doesn't have any return type but method has return type and return something unless its void. Constructors are chained and they are called in a particular order, there is no such facility for methods.


Reply By- CharlesPem    Thu Mar 09 23:34:39 IST 2017


on


Reply By- CharlesPem    Fri Mar 10 06:12:08 IST 2017


on


Reply By- CharlesPem    Fri Mar 10 18:07:27 IST 2017


on


Reply By- CharlesPem    Sat Mar 11 00:17:12 IST 2017


on


Reply By- CharlesPem    Fri Mar 17 12:44:39 IST 2017


on


Reply By- AlfredWiday    Fri Mar 17 12:59:05 IST 2017


on


Reply By- EugeneSok    Fri Mar 17 22:47:24 IST 2017


on


Reply By- BennyKit    Sat Mar 18 12:38:39 IST 2017


on


Reply By- AaronlAt    Sat Mar 18 14:07:38 IST 2017


on


Reply By- Tracysoorp    Sat Mar 18 16:03:29 IST 2017


on


Reply By- Tracysoorp    Sat Mar 18 20:39:57 IST 2017


on


Reply By- EugeneSok    Sun Mar 19 02:24:44 IST 2017


on


Reply By- EugeneSok    Sun Mar 19 09:10:27 IST 2017


on