MCQOPTIONS
Saved Bookmarks
| 1. |
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; |
| A. | IntervieM |
| B. | Interview |
| C. | IntervieW |
| D. | Inter |
| E. | None of these |
| Answer» D. Inter | |