MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?public class Main { public static void main(String args[]) { StringBuffer strbuf = new StringBuffer("Interview"); StringBuffer strbuf0 = new StringBuffer(" Mania"); strbuf.append(strbuf0); System.out.println(strbuf); } } |
| A. | Mania |
| B. | Interview |
| C. | Interview Mania |
| D. | Compilation Error |
| E. | Runtime Error |
| Answer» D. Compilation Error | |