Question
a.
Replace all characters that matches pattern with a replacement string
b.
Replace first subsequence that matches pattern with a replacement string
c.
Replace all other than first subsequence of that matches pattern with a replacement string
d.
Replace every subsequence of the input sequence that matches pattern with a replacement string
Posted under Java Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What does public String replaceAll(string replace) do?
Similar Questions
Discover Related MCQs
Q. What does public int start() return?
View solution
Q. Which of the following is not introduced with Java 8?
View solution
Q. What is the purpose of BooleanSupplier function interface?
View solution
Q. What is the return type of lambda expression?
View solution
Q. Which is the new method introduced in java 8 to iterate over a collection?
View solution
Q. What are the two types of Streams offered by java 8?
View solution
Q. Which method is used to create a directory with fileattributes?
View solution
Q. Which method can be used to check fileAccessiblity?
View solution
Q. How can we delete all files in a directory?
View solution
Q. How to copy the file from one location to other?
View solution
Q. How can we get the size of specified file?
View solution
Q. How to read entire file in one line using java 8?
View solution
Q. How can we create a symbolic link to file?
View solution
Q. How can we filter lines based on content?
View solution
Q. Which jar provides FileUtils which contains methods for file operations?
View solution
Q. Which feature of java 7 allows to not explicitly close IO resource?
View solution
Q. Which of the following is not a core interface of Hibernate?
View solution
Q. SessionFactory is a thread-safe object.
View solution
Q. Which of the following methods returns proxy object?
View solution
Q. Which of the following methods hits database always?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!