subject

Can somebody plz explain this question to me?

what is the output of the program shown below?

public class someclass
{
private int x, y;

public someclass (int xvalue, int yvalue)
{
x = xvalue;
y = yvalue;
}
public void m1()
{
x = 30;
system. out. print((y + 1) + " ");
}
public void m2()
{
m1();
system. out. print(x + " ");
}
}
public class tester
{
public static void main (string[] args)
{
int x = 10;
int y = 20;
someclass z = new someclass(y, x);
z. m2();
z. m1();
}
}

21 10 21
21 30 21
11 30 11
1 10 11
11 30 21

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
According to alisa miller foreign news bureaus
Answers: 3
question
Computers and Technology, 22.06.2019 16:00
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
question
Computers and Technology, 24.06.2019 02:10
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
question
Computers and Technology, 24.06.2019 16:30
Which program can damage your computer?
Answers: 1
You know the right answer?
Can somebody plz explain this question to me?

what is the output of the program shown b...
Questions
question
Biology, 04.02.2020 19:45
Questions on the website: 13722367