Java If-else Statement

Java If-else Statement The Java if statement is used to test the condition. It checks boolean condition: true or false. For example, if a number is greater than zero then we want to print “Positive Number” but if it is less than zero then we want to print “Negative Number”. In this case we have…

Java Operators

Java Operators An operator is used to perform an operation over one or more operands. It is a character that represents an action, for example * is an arithmatic operator that represents multiplication. Operator in Java are classified as:- Assignment Operator Arithmetic Operator Auto-increment and Auto-decrement Operator Logical Operator Relation Operator Bitwise Operator Ternary Operator…

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.