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 22 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


jackie

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

 

Did you know?

Vital signs (blood pressure, temperature, pulse rate, respiration rate) should be taken before any drug administration. Patients should be informed not to use tobacco or caffeine at least 30 minutes before their appointment.

Did you know?

According to the FDA, adverse drug events harmed or killed approximately 1,200,000 people in the United States in the year 2015.

Did you know?

Congestive heart failure is a serious disorder that carries a reduced life expectancy. Heart failure is usually a chronic illness, and it may worsen with infection or other physical stressors.

Did you know?

Historic treatments for rheumatoid arthritis have included gold salts, acupuncture, a diet consisting of apples or rhubarb, nutmeg, nettles, bee venom, bracelets made of copper, prayer, rest, tooth extractions, fasting, honey, vitamins, insulin, snow collected on Christmas, magnets, and electric convulsion therapy.

Did you know?

Anti-aging claims should not ever be believed. There is no supplement, medication, or any other substance that has been proven to slow or stop the aging process.

For a complete list of videos, visit our video library