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

Author Question: What is the output of the following code?String s = "University";s.replace("i", "ABC");System.out.println(s); (Read 31 times)

fasfsadfdsfa

  • Hero Member
  • *****
  • Posts: 554

Question 1

Suppose s1 and s2 are two strings. Which of the following statements or expressions are incorrect?
◦ s1 >= s2
◦ String s3 = s1 + s2
◦ s1.charAt(0) = '5'
◦ String s = new String("new string");
◦ int i = s1.length

Question 2

What is the output of the following code?

String s = "University";
s.replace("i", "ABC");
System.out.println(s);

◦ UnABCversity
◦ UniversABCty
◦ UnABCversABCty
◦ University


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by fasfsadfdsfa on May 6, 2020

ebe

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




fasfsadfdsfa

  • Member
  • Posts: 554
Reply 2 on: May 6, 2020
Gracias!


sarah_brady415

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

 

Did you know?

Bacteria have flourished on the earth for over three billion years. They were the first life forms on the planet.

Did you know?

Recent studies have shown that the number of medication errors increases in relation to the number of orders that are verified per pharmacist, per work shift.

Did you know?

Increased intake of vitamin D has been shown to reduce fractures up to 25% in older people.

Did you know?

Side effects from substance abuse include nausea, dehydration, reduced productivitiy, and dependence. Though these effects usually worsen over time, the constant need for the substance often overcomes rational thinking.

Did you know?

Illness; diuretics; laxative abuse; hot weather; exercise; sweating; caffeine; alcoholic beverages; starvation diets; inadequate carbohydrate consumption; and diets high in protein, salt, or fiber can cause people to become dehydrated.

For a complete list of videos, visit our video library