Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these data type value is returned by equals() method of String class?
  2. A.
    char
    B.
    int
    C.
    boolean
    D.
    All of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    equals() method of string class returns boolean value true if both the string are equal and false if they are unequal.


Be The First To Comment