One of the key features of method is it’s ability to work with parameters. Whenever you are calling a method you should always provide arguments that must be in the same order as their respective parameters Continue reading
A method is strucure t group statements together to form function. You can define the a method just once and reuse it in other programs. Continue reading
The if statements makes selections based on the single true or false conditions.
If there are multiple cases we can make the use of nested if else statements but this becomes very complicated. Continue reading
Simple if statement execute an action if and only if the condition is true. Continue reading
While learning we basically use only one class that contains the main method but a real life application will have multiple classes. Continue reading
We use various comparision operators (also known as relational operators) to compare any two values. Continue reading