A
Q. What will be the output of the following program code?
public class Test{
public static void main(String args[]){
String s = "what";
StringBuffer sb = new StringBuffer("what");
System.out.print(sb.equals(s)+","+s.equals(sb));
}
}
- Correct Answer - Option(D)
- Views: 13
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.