PRO192_-_SP_2023_-_BL5_-_FE_118.webp
hoangduc2001

PRO192_-_SP_2023_-_BL5_-_FE_118.webp

Multiple Choices
Answer (Choose 1 answer)
F
Given:
13. public class Pass {
14. public static void main(String[] args) {
15. int x = 5;
16.Pass p = new Pass();
17.p.doStuff(x);
18. System.out.print(" main x = "+ x);
19. }
20.
21. void doStuff(int x) {
22 System.out.print("doStuff x = "+ x++);
23. }
24.}
What is the result?
A. Compilation fails.
B. An exception is thrown at runtime.
C. doStuff x=6 main x=6
D. doStuff x=5 main x=5
E. doStuff x=5 main x=6
F. doStuff x=6 main x=5

Thông tin

Category
PRO192
Thêm bởi
hoangduc2001
Ngày thêm
Lượt xem
2,538
Lượt bình luận
16
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom