The main purpose of this question is to contribute content to Stack Overflow in Spanish
In C # we can convert data types (that do not accept the null value) to be nullable; assigning null to this type of data, produces a syntax error since C # performs the verification while it is being written.
That is, if we had something like
float flotante = null; it would generate the error:
float es un tipo que no acepta valores null
Although if you put the question sign in front of the type, then e becomes nullable and supports null values.
It would be something like:
bool? booleano = null; int? entero = null; float? flotante = null; decimal? decim = null;
Now, is there any equivalent in Java?