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 24 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
Thanks for the timely response, appreciate it


duy1981999

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

 

Did you know?

The use of salicylates dates back 2,500 years to Hippocrates’s recommendation of willow bark (from which a salicylate is derived) as an aid to the pains of childbirth. However, overdosage of salicylates can harm body fluids, electrolytes, the CNS, the GI tract, the ears, the lungs, the blood, the liver, and the kidneys and cause coma or death.

Did you know?

Most childhood vaccines are 90–99% effective in preventing disease. Side effects are rarely serious.

Did you know?

The lipid bilayer is made of phospholipids. They are arranged in a double layer because one of their ends is attracted to water while the other is repelled by water.

Did you know?

Between 1999 and 2012, American adults with high total cholesterol decreased from 18.3% to 12.9%

Did you know?

Women are 50% to 75% more likely than men to experience an adverse drug reaction.

For a complete list of videos, visit our video library