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 27 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
:D TYSM


komodo7

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

 

Did you know?

In Eastern Europe and Russia, interferon is administered intranasally in varied doses for the common cold and influenza. It is claimed that this treatment can lower the risk of infection by as much as 60–70%.

Did you know?

The most destructive flu epidemic of all times in recorded history occurred in 1918, with approximately 20 million deaths worldwide.

Did you know?

The shortest mature adult human of whom there is independent evidence was Gul Mohammed in India. In 1990, he was measured in New Delhi and stood 22.5 inches tall.

Did you know?

Persons who overdose with cardiac glycosides have a better chance of overall survival if they can survive the first 24 hours after the overdose.

Did you know?

The horizontal fraction bar was introduced by the Arabs.

For a complete list of videos, visit our video library