I came across this code
public class Main {
static int someint;
public static void main(String[] args) {
someint = -0;
print();
}
private static int print()
{
System.out.println(someint);
return someint;
}
}
This prints -0 when i run it
I was just curios as to how -0 is a legal integer value