

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program? class output { public static void main(String args[]) { StringBuffer sb=new StringBuffer("Hello"); sb.replace(1,3,"Java"); System.out.println(sb); } } |
A. | Hello java |
B. | Hellojava |
C. | HJavalo |
D. | Hjava |
Answer» D. Hjava | |