This topic contains a solution. Click here to go to the answer

Author Question: What is the printout for the first statement in the main method?public class Test { private int i = ... (Read 27 times)

abarnes

  • Hero Member
  • *****
  • Posts: 556
What is the printout for the first statement in the main method?

public class Test {
private int i = 0;
static int j = 0;

public static void main(String[] args) {
new Test();
}

public Test() {
i++;
j++;
int i = 1;
int j = 1;
System.out.println("i is " + j + " j is " + j);
}
}

◦ i is 2 j is 2
◦ i is 0 j is 1
◦ i is 1 j is 0
◦ i is 1 j is 1
◦ i is 0 j is 0


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by abarnes on May 6, 2020

jaaaaaaa

  • Sr. Member
  • ****
  • Posts: 341
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




abarnes

  • Member
  • Posts: 556
Reply 2 on: May 6, 2020
Gracias!


gcook

  • Member
  • Posts: 343
Reply 3 on: Yesterday
Great answer, keep it coming :)

 

Did you know?

A headache when you wake up in the morning is indicative of sinusitis. Other symptoms of sinusitis can include fever, weakness, tiredness, a cough that may be more severe at night, and a runny nose or nasal congestion.

Did you know?

Vaccines prevent between 2.5 and 4 million deaths every year.

Did you know?

The senior population grows every year. Seniors older than 65 years of age now comprise more than 13% of the total population. However, women outlive men. In the 85-and-over age group, there are only 45 men to every 100 women.

Did you know?

Walt Disney helped combat malaria by making an animated film in 1943 called The Winged Scourge. This short film starred the seven dwarfs and taught children that mosquitos transmit malaria, which is a very bad disease. It advocated the killing of mosquitos to stop the disease.

Did you know?

Elderly adults are living longer, and causes of death are shifting. At the same time, autopsy rates are at or near their lowest in history.

For a complete list of videos, visit our video library