Home   Cover Cover Cover Cover
 

Result type of expressions

short s = 1; int i = 2; long x = 3; float f = 4f; char c = 'a'; Color col = Color.red;

ExpressionResult type
s + 1int
s + 100000000000long
i + ffloat
c + 1int
col + 1Color
10 * x + (x - '0')long
s + 1.0double