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