Assignment Operators in Java | Hindi

preview_player
Показать описание
Assignment operators in Java are used to assign values to variables. They allow you to update the value of a variable by performing an operation and assigning the result back to the variable.

Here are the common assignment operators in Java:

= (simple assignment operator): assigns the value on the right-hand side to the variable on the left-hand side.
+= (addition assignment operator): adds the value on the right-hand side to the variable on the left-hand side and assigns the result back to the variable.
-= (subtraction assignment operator): subtracts the value on the right-hand side from the variable on the left-hand side and assigns the result back to the variable.
*= (multiplication assignment operator): multiplies the variable on the left-hand side by the value on the right-hand side and assigns the result back to the variable.
/= (division assignment operator): divides the variable on the left-hand side by the value on the right-hand side and assigns the result back to the variable.
%= (modulus assignment operator): calculates the modulus of the variable on the left-hand side with the value on the right-hand side and assigns the result back to the variable.

More Learning(English) :

Donation:
PayPal Id : navinreddy20
Рекомендации по теме
visit shbcf.ru