Hi , i want the reason for the following output of replace function in java
1> System.out.prin tln("String".re place('g','g') == "String".replac e('g','g'));
2> System.out.prin tln("String".re place('g','G') == "String".replac e('g','G'));
output:
1>true
2>false
what is the reason for the above output.?
1> System.out.prin tln("String".re place('g','g') == "String".replac e('g','g'));
2> System.out.prin tln("String".re place('g','G') == "String".replac e('g','G'));
output:
1>true
2>false
what is the reason for the above output.?
Comment