mardi 21 juillet 2020

Please help me understand what will be the output of this Java program [closed]

What will the output be for the following Java program and why?

public class ControlStatement {
    public static void main(String[] args) {
        int a=25;
        if(a-->a--){
        {
            a='0';
        }
        }
        else
        --a;
        System.out.print(a);
    }
}

Aucun commentaire:

Enregistrer un commentaire