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 39 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!


alvinum

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

 

Did you know?

Liver spots have nothing whatsoever to do with the liver. They are a type of freckles commonly seen in older adults who have been out in the sun without sufficient sunscreen.

Did you know?

Approximately one in four people diagnosed with diabetes will develop foot problems. Of these, about one-third will require lower extremity amputation.

Did you know?

Between 1999 and 2012, American adults with high total cholesterol decreased from 18.3% to 12.9%

Did you know?

IgA antibodies protect body surfaces exposed to outside foreign substances. IgG antibodies are found in all body fluids. IgM antibodies are the first type of antibody made in response to an infection. IgE antibody levels are often high in people with allergies. IgD antibodies are found in tissues lining the abdomen and chest.

Did you know?

Asthma is the most common chronic childhood disease in the world. Most children who develop asthma have symptoms before they are 5 years old.

For a complete list of videos, visit our video library