subject

What is the output of the following program?

public class testmeth
{
static int i = 1;
public static void main(String args[])
{
System. out. println(i+" , ");
m(i);
System. out. println(i);
}
public void m(int i)
{
i += 2;
}
}

a) 1 , 3
b) 3 , 1
c) 1 , 1
d) 1 , 0
e) none of the above.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
question
Computers and Technology, 22.06.2019 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
You know the right answer?
What is the output of the following program?

public class testmeth
{
stat...
Questions
question
Mathematics, 23.04.2020 04:36
question
English, 23.04.2020 04:36
question
Mathematics, 23.04.2020 04:36
Questions on the website: 13722363