题目详情
单选题 11.public interface A {12. public static final int EASY = 3;13. void doStuff(int t);14.}15.16.public class Test implements A {17. void doStuff(int s) {18. s += A.EASY + ++s;19. System.out.println("s " + s);20. }21. public static void main(String[] args) {22. int x = 5;23. new Test2().doStuff(++x);24. }35.}What is the result
A. Compilation fails
B. s 16
C. s 10
D. s 14

学科:JAVA编程技术
时间:2024-12-17 15:56:19
相关题目
相关作业
