Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these operators can be used to concatenate two or more String objects?
  2. A.
    +
    B.
    +=
    C.
    &
    D.
    ||

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    operator + is used to concatenate strings, Example String s = "i  + "like  + "java; String s contains "I like java.


Be The First To Comment