PRO192_-_SP_2025_-_FE_3648.webp
Y

PRO192_-_SP_2025_-_FE_3648.webp

  • Media owner Yuji99
  • Ngày thêm
Kizspy Question: 29
(Choose 1 answer)
What is the output following the code snippet?
public class DemoClass {
void add(int x, int y){
}
System.out.println("1. Addition is: " +(x+y));
void add(int y, int x){
System.out.println("2. Addition is: " +(x+y));
public static void main(String[] args){
DemoClass obj = new DemoClass ();
obj.add(20, 30);
A. Compile error
B. 2. Addition of two numbers: 50
C. 1. Addition of two numbers: 50
D. 20,30

Thông tin

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

Share this media

Back
Bên trên Bottom