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


hramirez205

  • Member
  • Posts: 345
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Most childhood vaccines are 90–99% effective in preventing disease. Side effects are rarely serious.

Did you know?

Many supplement containers do not even contain what their labels say. There are many documented reports of products containing much less, or more, that what is listed on their labels. They may also contain undisclosed prescription drugs and even contaminants.

Did you know?

GI conditions that will keep you out of the U.S. armed services include ulcers, varices, fistulas, esophagitis, gastritis, congenital abnormalities, inflammatory bowel disease, enteritis, colitis, proctitis, duodenal diverticula, malabsorption syndromes, hepatitis, cirrhosis, cysts, abscesses, pancreatitis, polyps, certain hemorrhoids, splenomegaly, hernias, recent abdominal surgery, GI bypass or stomach stapling, and artificial GI openings.

Did you know?

The highest suicide rate in the United States is among people ages 65 years and older. Almost 15% of people in this age group commit suicide every year.

Did you know?

Cutaneous mucormycosis is a rare fungal infection that has been fatal in at least 29% of cases, and in as many as 83% of cases, depending on the patient's health prior to infection. It has occurred often after natural disasters such as tornados, and early treatment is essential.

For a complete list of videos, visit our video library