String Objects: Concatenation, Literals, and More

AP Computer Science A· difficulty 3/5

<code>"abc".concat("def")</code> returns

  • A

    def

  • B

    abc def

  • C

    abcdef

    check_circle
  • D

    abc

Explanation

<code>concat</code> joins two strings.

Want 10 more like this — adaptive to your weak spots?

Related questions