I
2. Там есть финальный стринг. Склеиваются во время ран тайма.
3 и 4. Склеиваются во время компиляции.
Size: a a a
I
I
V
V
V
NK
I
NK
I
KB
KB
KB
KB
SU
int a = Integer.MIN_VALUE;
if (Math.abs(a) > 0)
{
System.out.println("yep");
}
else
{
System.out.println("nope");
}
I
int a = Integer.MIN_VALUE;
if (Math.abs(a) > 0)
{
System.out.println("yep");
}
else
{
System.out.println("nope");
}
NK
NK
NK
I
SU
Double a = -0.0;
Double b = 0.0;
if (Objects.equals(a, b))
{
System.out.println("yep");
}
else
{
System.out.println("nope");
}
double aa = -0.0;
double bb = 0.0;
if (aa == bb)
{
System.out.println("yep");
}
else
{
System.out.println("nope");
}