Posts by Nadev • 145 points
2 posts
-
3
votes2
answers159
viewsQ: Double wrapper initialization with int does not compile
I want to understand why this boot doesn’t work: (1): Double d = 10; // Não funciona I understand that Double is a wrapper, the compiler should convert this line to: (2): Double d =…
-
11
votes3
answers527
viewsQ: Precedence of operators
I have a question regarding the precedence of operators in Java. I have the following code: int x = 2; long y = 1 + x * 4 - ++x; Viewing the Precedence Table here. In my view the expression should…