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 19 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
YES! Correct, THANKS for helping me on my review


recede

  • Member
  • Posts: 315
Reply 3 on: Yesterday
Wow, this really help

 

Did you know?

A cataract is a clouding of the eyes' natural lens. As we age, some clouding of the lens may occur. The first sign of a cataract is usually blurry vision. Although glasses and other visual aids may at first help a person with cataracts, surgery may become inevitable. Cataract surgery is very successful in restoring vision, and it is the most frequently performed surgery in the United States.

Did you know?

Only 12 hours after an egg cell is fertilized by a sperm cell, the egg cell starts to divide. As it continues to divide, it moves along the fallopian tube toward the uterus at about 1 inch per day.

Did you know?

The first successful kidney transplant was performed in 1954 and occurred in Boston. A kidney from an identical twin was transplanted into his dying brother's body and was not rejected because it did not appear foreign to his body.

Did you know?

The Centers for Disease Control and Prevention (CDC) was originally known as the Communicable Disease Center, which was formed to fight malaria. It was originally headquartered in Atlanta, Georgia, since the Southern states faced the worst threat from malaria.

Did you know?

Street names for barbiturates include reds, red devils, yellow jackets, blue heavens, Christmas trees, and rainbows. They are commonly referred to as downers.

For a complete list of videos, visit our video library