aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Strings
  • Which of the following methods is used in Java to concate...
Multiple choice

Which of the following methods is used in Java to concatenate two strings?

  1. replace()

  2. trim()

  3. concat()

  4. substring()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The concat() method is used in Java to concatenate two strings.

Keep practicing — related questions

  • Which of the following functions or methods in Java is used to concatenate string at the end of any other s...
  • For concatenation of strings, which method is good, StringBuffer or String
  • For concatenation of strings, which method is good, StringBuffer or String
  • Which of the following methods in StringBuffer class concatenates two strings of different types to the end...
  • The_________ method concatenates the string representation of any other type of data to the end of the invo...
  • Which of the following methods is used in StringBuffer class to concatenate the string representation of an...
  • Consider the following code snippet String s1="Hello"; String s2=s1; s1.concat("World"); System.out.println...
  • Which of the following methods in java inserts one string into another?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy