Java ternary operator with negative variable : Can anyone tells working of negative variables in java?

    public class Ternary {
    
    public static void main(String[] args) {
        
        int i,k;
        i=-10;
        
        k=i<0?-i:i;
        System.out.print(i+"is"+k);
        
        
    }

output:-10 is 10

Can anyone tells internal working of the variables in this scenario.How variable acts negatively?Thanks in advance!