Consider the following segment of code.
 String word = "conflagration";
 int x = word.indexOf("flag");
 String s = word.substring(0, x);
 What will be the result of executing the above segment?
(A)String s will be the empty string. (B)String s will contain "flag". (C)String s will contain "conf". (D)String s will contain "con".
D