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 24 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
Great answer, keep it coming :)


lkanara2

  • Member
  • Posts: 329
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

All adverse reactions are commonly charted in red ink in the patient's record and usually are noted on the front of the chart. Failure to follow correct documentation procedures may result in malpractice lawsuits.

Did you know?

In the United States, there is a birth every 8 seconds, according to the U.S. Census Bureau's Population Clock.

Did you know?

The Romans did not use numerals to indicate fractions but instead used words to indicate parts of a whole.

Did you know?

The Food and Drug Administration has approved Risperdal, an adult antipsychotic drug, for the symptomatic treatment of irritability in children and adolescents with autism. The approval is the first for the use of a drug to treat behaviors associated with autism in children. These behaviors are included under the general heading of irritability and include aggression, deliberate self-injury, and temper tantrums.

Did you know?

Although puberty usually occurs in the early teenage years, the world's youngest parents were two Chinese children who had their first baby when they were 8 and 9 years of age.

For a complete list of videos, visit our video library