Question
Complete the Java code to replace all occurrences of a
specific word (case-insensitive) in a string. public class RegexReplacer {   public String replaceWord(String text, String wordToReplace, String replacement) {     // Example: text="Hello World", wordToReplace="world", replacement="Java"     // Expected: "Hello Java"     String regex = "(?i)\\b" + Pattern.quote(wordToReplace) + "\\b";     _________ // Line to complete   } }Solution
Correct Answer: E (The replaceAll method of Matcher is needed to replace all occurrences using a regex pattern. text.replaceAll is a convenience method that internally uses Pattern.compile and Matcher.replaceAll.)
BACKFIRE
PESSIMIST
The fear of dogs/rabies
1) he tried to
2) very his diet
3) after the suggestion
4) of the doctor
5) No error
Choose the word which is opposite in meaning to the given word
FRUGAL
Select the wrongly spelt word.
Find the correctly spelt word .
Find the appropriate answer.
Find the word with the appropriate similar meaning of the word in Italic from the options given:
The tranquil lake was perfect for a peaceful w...
Vulnerable
...