aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming Fundamentals
  • Which of the following methods cannot be used with the ob...
Multiple choice

Which of the following methods cannot be used with the object of String class?

  1. replace(char, char)

  2. replaceAll(String, String)

  3. append(String)

  4. Both the options 1 and 2

  5. All of these

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

This is incorrect.

Keep practicing — related questions

  • Which of the following functions cannot be invoked using the object of String class?
  • Which of the following functions cannot be invoked using the object of String class?
  • Which of the following functions cannot be invoked using the object of String class?
  • What is the correct syntax of replace() method of the StringBuffer class?
  • Which of the following methods in StringBuffer class is used to replace one set of characters with another ...
  • Which of the following methods of the String class in Java is used to copy a range of characters from the g...
  • If we want to convert all the characters in a String object into a character array, we use the _________ me...
  • If we want to convert all the characters in a String object into a character array, we use the _________ me...
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