-
What is the output of this program?
package pack;
public class Result
{
public static void main(String args[])
{
StringBuffer strbuf = new StringBuffer("Hello Mania");
strbuf.insert(6 , "Interview ");
System.out.println(strbuf);
}
}
-
- Hello Mania
- Mania
- Interview
- Hello Interview Mania
- None of these
Correct Option: D
Since Result.class file is not in the directory pkg in which class Result is defined, program will not be able to run.