Explanatory Question
Give the output of the following string functions:
- "ACHIEVEMENT".replace('E', 'A')
- "DEDICATE".compareTo("DEVOTE")
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.