Kotlin TutorialLesson 9Free preview
Kotlin Operators
This lesson is part of Kotlin · All levels
Summary
This lesson reviews the operators of arithmetic, comparison, logic, and assignment in Kotlin. The operator in Kotlin is actually mapped to a special method calling. The developer will learn how standard operators work as well as the use of range and value equality.
Key points
- The standard arithmetic operator: +, -, *, /, %
- The operator of the composite assignment: +=, -=, *=, /=
- The structural value equivalence operator uses '==' and the object reference equivalence uses '==='
- Logical operators include conjunctions '&', disjunctions '&' and 'negation!'
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.