Участник:Alexsmail/Программирование 2020/новый черновик: различия между версиями

Содержимое удалено Содержимое добавлено
черновик
м исправление
Строка 515:
For efficiency's sake, this behavior is implementation specific; Java virtual machines are free to perform writes to long and double values atomically or in two parts.
Some processors do not provide the ability to write to a single byte.
 
***
===
 
Characters
 
Строка 538 ⟶ 539 :
 
Like numbers, characters are boxed when a nullable reference is needed. Identity is not preserved by the boxing operation.
 
=====
***
However, to support generic use cases and provide total ordering, when the operands are not statically typed as floating point numbers (e.g. Any, Comparable<...>, a type parameter), the operations use the equals and compareTo implementations for Float and Double, which disagree with the standard, so that: