What will be the result of compiling and running the following code?

public class IfElseTest {
    public static void main(String...args) {
        boolean b = false; 
        if (b == false)
            if (b = false)
                System.out.println("if statement");
        else
            System.out.println("else statement");
    }
}

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Java
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести