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. (more…)
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. (more…)
Simple if statement execute an action if and only if the condition is true. (more…)
While learning we basically use only one class that contains the main method but a real life application will have multiple classes. (more…)
We use various comparision operators (also known as relational operators) to compare any two values. (more…)