Каков результат выполнения программы?
public class Example1 { public static void main(String[] args) { { int a = 10; { int a = 12; System.out.println("a=" + a); } } } }
Ошибка компиляции.
a=10
a=12
Please log in or register to have a possibility to add comment.
Please log in or register to have a possibility to add comment.