User inputs via Command Prompt using arguments of main() method of a class.

There is also a third way to take user input via using Console class. This method helps a user to…

Continue Reading →

Useful methods and implementation under Scanner Class.

To get user input at runtime we have to use Scanner Class. It contains various inbuilt methods which can be…

Continue Reading →

Parameterized Constructors v/s Setter and Getter function in JAVA.

In my opinion, there is only a syntax difference between parameterized constructors and setter function in JAVA. Both would be…

Continue Reading →