-
What is the output of this program?
package pack;
public class Result
{
public static void main(String args[])
{
StringBuffer strbuf = new StringBuffer("IntervieM");
strbuf.setCharAt(8, 'W');
System.out.println(strbuf);
}
}
Note : Result.class file is in directory pack;
-
- IntervieM
- Interview
- IntervieW
- Inter
- None of these
Correct Option: C
IntervieW