题海让大学四年没有难题
白天模式登陆

题目详情

单选题 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编程技术课程封面

学科:JAVA编程技术

时间:2024-12-17 15:56:19

Copyright © 2022 津ICP备2021001502号