PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp
K

PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp

Multiple Choices
Answer (Choose 1 answer)
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 v=6
F. doStuff x=6 main x=5
OF

Thông tin

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

Share this media

Back
Bên trên Bottom