A
Q. What will be the output of the following Java program?
class output
{
public static void main(String args[])
{
String c = " Hello World ";
String s = c.trim();
System.out.println("""+s+""");
}
}
- Correct Answer - Option(C)
- Views: 26
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.