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 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Write a fragment of code that reads in strings from standard input, until end-of-file and prints to standard output the largest value. you may assume there is at least one value. (cascading/streaming logic, basic string processing)
Answers: 3
You know the right answer?
Can somebody plz explain this question to me?

what is the output of the program shown b...
Questions
question
SAT, 01.04.2021 14:10
question
Mathematics, 01.04.2021 14:10
question
Mathematics, 01.04.2021 14:10
question
Mathematics, 01.04.2021 14:10
question
Mathematics, 01.04.2021 14:10
question
Mathematics, 01.04.2021 14:10
question
Health, 01.04.2021 14:10
question
Mathematics, 01.04.2021 14:10
question
Mathematics, 01.04.2021 14:10
Questions on the website: 13722367