Constructor Vs Method in Java Programming Language

Generally Constructor and Methods in java are looks similar. But there are lots of differences between these two concepts in java. Let us discuss one by one and try to understand difference between these two. Definition: Constructor is a block with class name used to initialize instant variable during object creation. Important point on constructor …

Constructor Vs Method in Java Programming Language Read More »