Why don't Java's +=, -=, *=, /= compound assignment operators require casting?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=Li-Z9g9hzLI



Duration: 5:46
4 views
0


Why don't Java's +=, -=, *=, /= compound assignment operators require casting?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/1127571/honza-brabec)Honza Brabec |
(stackoverflow.com/users/521799/lukas-eder)Lukas Eder |
(stackoverflow.com/users/57695/peter-lawrey)Peter Lawrey |
(stackoverflow.com/users/137369/thirler)Thirler |
(stackoverflow.com/users/471607/umesh-awasthi)Umesh Awasthi |
(stackoverflow.com/users/758708/dku-rajkumar)dku.rajkumar |
A special thanks goes out to the (https://stackoverflow.com/questions/8710619/why-dont-javas-compound-assignment-operators-require-casting)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

operators assignment-operator casting java variable-assignment







Tags:
operators
assignment-operator
casting
java
variable-assignment