R
Q. What will be the output of following Java code?
Code:
public class Main {
public static void main(String[] args) {
StringBuffer sb = new StringBuffer("include");
sb.append("help");
System.out.println(sb);
}
}
public static void main(String[] args) {
StringBuffer sb = new StringBuffer("include");
sb.append("help");
System.out.println(sb);
}
}
- Correct Answer - Option(D)
- Views: 214
- Filed under category JAVA
Discusssion
Login to discuss.