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

Author Question: Consider the following two lines of code. What can you say about s1 and s2? (Read 23 times)

Bob-Dole

  • Hero Member
  • *****
  • Posts: 547
Consider the following two lines of code.  What can you say about s1 and s2?

◦ s1 and s2 are both references to the same String object
◦ the line declaring s2 is legal Java; the line declaring s1 will produce a syntax error
◦ s1 and s2 are both references to different String objects
◦ s1 and s2 will compare "equal"
◦ none of these


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by Bob-Dole on Aug 30, 2020

lucas dlamini

  • Sr. Member
  • ****
  • Posts: 327
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 35% of students answer this correctly




Bob-Dole

  • Member
  • Posts: 547
Reply 2 on: Aug 30, 2020
Wow, this really help


shailee

  • Member
  • Posts: 392
Reply 3 on: Yesterday
Excellent

 

Did you know?

By definition, when a medication is administered intravenously, its bioavailability is 100%.

Did you know?

Complications of influenza include: bacterial pneumonia, ear and sinus infections, dehydration, and worsening of chronic conditions such as asthma, congestive heart failure, or diabetes.

Did you know?

Children of people with alcoholism are more inclined to drink alcohol or use hard drugs. In fact, they are 400 times more likely to use hard drugs than those who do not have a family history of alcohol addiction.

Did you know?

Giardia is one of the most common intestinal parasites worldwide, and infects up to 20% of the world population, mostly in poorer countries with inadequate sanitation. Infections are most common in children, though chronic Giardia is more common in adults.

Did you know?

Fungal nail infections account for up to 30% of all skin infections. They affect 5% of the general population—mostly people over the age of 70.

For a complete list of videos, visit our video library