PRO192_-_C2_-_FE_-_SU_2023_398.webp
T

PRO192_-_C2_-_FE_-_SU_2023_398.webp

Answer (Choose 1 answer)
OF
Given:
13. public class Pass {
14. public static void main(String[] args) {
15. int c=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
Exit 15

Thông tin

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

Image metadata

Filename
PRO192_-_C2_-_FE_-_SU_2023_398.webp
File size
55.1 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom