in Education by
what does public String replaceAll(string replace) do? (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 This question was posed to me in class test. This interesting question is from Regular Expression topic in section Regular Expressions of Java Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Right choice is (d) Replace every subsequence of the input sequence that matches pattern with a replacement string To elaborate: replaceAll method replaces every subsequence of the sequence that matches pattern with a replacement string.

Related questions

0 votes
    What does public int end(int group) return? (a) offset from last character of the subsequent group ( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Why is the replace() method better than the assign() method? (a) Reliable (b) Highly manageable ( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What does Files.lines(Path path) do? (a) It reads all the files at the path specified as a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What does setAutoCommit(false) do? (a) commits transaction after each query (b) explicitly commits transaction ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What does Rhino do when the getter and setter methods exist? (a) It becomes JavaScript properties (b) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    What does the pushState() method do? (a) Removes the state (b) Adds new state (c) Replaces the ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What does the rendering engine do when it encounters JavaScript? (a) Skips the code (b) Continues painting ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What does the browser do to set up a TCP/IP connection? (a) TCP one-way handshake (b) TCP two- ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Which of these is used to read a string from the input stream? (a) get() (b) getLine() (c ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of these methods can be used to output a string in an applet? (a) display() (b) print() ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    The different variant of Date() constructor to create date object is/are ___________ i. new Date(date) ii ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...