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 15:30
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
Each time you save a document, you will need to type in the file type in which it should be saved you can select the save button to save it with the same file name if it has been previously saved you will need to select the location to save the file you will need to use the save as dialog box
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Does anybody know how to hack into a google account? i had important information on it and it is gone now and i need getting it back.
Answers: 1
You know the right answer?
What is the output of the following program?

public class testmeth
{
stat...
Questions
question
Mathematics, 30.07.2019 06:00
question
Chemistry, 30.07.2019 06:00
question
English, 30.07.2019 06:00
question
Computers and Technology, 30.07.2019 06:00