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- Kennethkib    Sat Apr 15 08:43:48 IST 2017


on


Reply By- Kennethkib    Sat Apr 15 15:18:23 IST 2017


on


Reply By- Tracysoorp    Tue Apr 25 14:00:40 IST 2017


on


Reply By- AaronlAt    Fri Apr 28 12:25:16 IST 2017


on


Reply By- AaronlAt    Fri Apr 28 12:26:52 IST 2017


on


Reply By- AaronlAt    Fri Apr 28 16:53:17 IST 2017


on


Reply By- AaronlAt    Fri Apr 28 16:54:35 IST 2017


on


Reply By- AaronlAt    Sat Apr 29 01:44:46 IST 2017


on


Reply By- AaronlAt    Sat Apr 29 15:51:12 IST 2017


on


Reply By- Kennethkib    Sat Apr 29 16:14:31 IST 2017


on


Reply By- AlfredWiday    Sat Apr 29 21:27:42 IST 2017


on


Reply By- AaronlAt    Sat Apr 29 22:58:44 IST 2017


on


Reply By- Kennethkib    Sun Apr 30 02:06:34 IST 2017


on


Reply By- AaronlAt    Sun Apr 30 07:48:00 IST 2017


on


Reply By- AaronlAt    Sun Apr 30 07:49:27 IST 2017


on