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 21 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
Wow, this really help


Liamb2179

  • Member
  • Posts: 365
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

Certain rare plants containing cyanide include apricot pits and a type of potato called cassava. Fortunately, only chronic or massive ingestion of any of these plants can lead to serious poisoning.

Did you know?

There are over 65,000 known species of protozoa. About 10,000 species are parasitic.

Did you know?

Despite claims by manufacturers, the supplement known as Ginkgo biloba was shown in a study of more than 3,000 participants to be ineffective in reducing development of dementia and Alzheimer’s disease in older people.

Did you know?

Stevens-Johnson syndrome and Toxic Epidermal Necrolysis syndrome are life-threatening reactions that can result in death. Complications include permanent blindness, dry-eye syndrome, lung damage, photophobia, asthma, chronic obstructive pulmonary disease, permanent loss of nail beds, scarring of mucous membranes, arthritis, and chronic fatigue syndrome. Many patients' pores scar shut, causing them to retain heat.

Did you know?

Thyroid conditions may make getting pregnant impossible.

For a complete list of videos, visit our video library