How to Earn Money ADFLY

Monday, 20 February 2017

Constructors in Java

Constructor is a block of code, which runs when you use new keyword in order to instantiate an object. It looks like a method, however it is not a method. Methods have return type but constructors don’t have any return type.

No comments:

Post a Comment