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

Author Question: If two variables contain aliases of the same object then (Read 24 times)

captainjonesify

  • Hero Member
  • *****
  • Posts: 543

Question 1

Given the following code fragment

◦ strB.equals(strC) would be true
◦ strB.compareTo(strC) would yield 0
◦ strA.compareTo(strC) would yield 0
◦ strA.equals(strC) would be true
◦ none of these

Question 2

If two variables contain aliases of the same object then
◦ the object may be modified using either alias
◦ the object cannot be modified unless there's but a single reference to it
◦ a third alias is created if/when the object is modified
◦ the object will become an "orphan" if both variables are set to null
◦ answers the object may be modified using either alias  and the object will become an "orphan" if both variables are set to null  are correct


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by captainjonesify on Aug 30, 2020

1_Step_At_ATime

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




captainjonesify

  • Member
  • Posts: 543
Reply 2 on: Aug 30, 2020
Excellent


lindahyatt42

  • Member
  • Posts: 322
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Most fungi that pathogenically affect humans live in soil. If a person is not healthy, has an open wound, or is immunocompromised, a fungal infection can be very aggressive.

Did you know?

More than 20 million Americans cite use of marijuana within the past 30 days, according to the National Survey on Drug Use and Health (NSDUH). More than 8 million admit to using it almost every day.

Did you know?

As the western states of America were settled, pioneers often had to drink rancid water from ponds and other sources. This often resulted in chronic diarrhea, causing many cases of dehydration and death that could have been avoided if clean water had been available.

Did you know?

The eye muscles are the most active muscles in the whole body. The external muscles that move the eyes are the strongest muscles in the human body for the job they have to do. They are 100 times more powerful than they need to be.

Did you know?

There are approximately 3 million unintended pregnancies in the United States each year.

For a complete list of videos, visit our video library