Question: pleas anse all Q on java pleas 6. What is the expected output of the following: System.out.print(Islam is our religion.replace('1','1')); (1 Point) Enter your answer
6. What is the expected output of the following: System.out.print("Islam is our religion".replace('1','1')); (1 Point) Enter your answer 7. What is the expected output of the following: System.out.print("Islam is our religion".replaceAll("Islam", "ISLAM")); (1 Point) Enter your answer 8. What is the expected output of the following: System.out.print("Islam is our religion".replaceAll("i","I")); (1 Point) Enter your answer 9. What is the expected output of the following: System.out.print("Islam is our religion".replaceFirst("1","1")); (1 Point) Enter your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
