Getting Started with Java
This is a 100% free course, but we need you to first join or login to watch this video.Alright, join or login here.
This video introduces you to logical operators in Java along with the increment and decrement operators. The increment operator has two forms: pre-increment where the value is first increased by 1 and then assigned to another variable whereas post-increment first assigns the value to another variable and then increases the value by 1. The logical NOT operator changes true to false and false to true. The logical AND operator returns true when the values of both the operands working with it are true whereas the logical OR operator returns false when the values of both the operands working with it are false.