Most voted "literal" questions
4 questions
Sort by count of
-
8
votes1
answer162
viewsWhat is the need to use the suffix "f" in a numerical constant in C?
It is necessary to add f at a value float within the parameters of a if? Example: if (a == 2.5f && a > 2.0f) {}…
-
7
votes1
answer127
viewsWhat is the use / reason for the existence of new Object();?
While I was studying a little bit more about objects, I came across things like new String , new Number, etc.. I got curious, and I went to learn. I understood the functioning, despite having my…
-
0
votes1
answer64
views"short s = 2;" Does Java already understand 2 as short?
I know that by default when initializing a variable of an integer type Java classifies it as int, but in the case of short s = 2, Java already understands 2 as short? Or is there some conversion?…
-
-3
votes1
answer71
views