Java Assignment Operator Part_16 |EduTech|




Java Assignment Operator

These operators are used to assign values to a variable. The left aspect operand of the challenge operator is a variable and the proper aspect operand of the project operator is a value. The fee on the proper aspect should be of the equal data-type of the operand on the left aspect in any other case the compiler will increase an error. This skill that the project operators have proper to left associativity, i.e. fee given on the right-hand facet of the operator is assigned to the variable on the left and consequently right-hand aspect cost ought to be declared earlier than the use of it or need to be a constant.

Operator Description

+= Add AND undertaking operator. It provides the proper operand to the left operand and assign the end result to the left operand.

-= Subtract AND task operator. It subtracts the proper operand from the left operand and assigns the end result to the left operand.


Post a Comment

Thanks for touching with us.

Copyright © EduTech. Designed by | WebMyDesign
Edutech