Какой из следующих вариантов кода выведет на экран "perform"?
(Отметьте один правильный вариант ответа.)
Варианты ответа
public class SomeClass { static void perform() { System.out.println("perform"); } private static SomeClass c; public static void main(String[] args) { c.perform(); } }(Верный ответ)
ни один из перечисленных
public class SomeClass { void perform() { System.out.println("perform"); } private static SomeClass c; public static void main(String[] args) { c.perform(); } }
public class SomeClass { static void perform() { System.out.println("perform"); } private SomeClass c; public static void main(String[] args) { c.perform(); } }
public class SomeClass { void perform() { System.out.println("perform"); } private SomeClass c; public static void main(String[] args) { c.perform(); } }