Arithmetic and Unary Operators
Understand how to use the arithmetic and unary operators with the help of examples in this lesson.
Chapter’s background
We have learned a few important concepts, such as how to store an object in the fields, how to name a field, by calling them variables. We have also seen how we can use an array, the container object that stores many elements or data types.
Now, the question is, what do we do with them? In many cases, we have assigned a value or initialized the value by using an assignment operator (=
). After assigning a value to two operands, we can add them by using a +
...
Access this course and 1400+ top-rated courses and projects.