Computer Science, asked by thaparebesh7, 8 hours ago

String s=”DARJEELING”; String c=replace(‘A’,’O’); System.out.println(c); The output of the above snippet is: a) DARJEELING b) DORJEELING c) DARJAALING d) DRJEELING​

Answers

Answered by zebanzm
0

Answer:

b) DORJEELING

Explanation:

c=replace('a','o') means the A in the word DARJEELING must be replaced by O. hence, it's b) DORJEELING.

Similar questions