Q55
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+"\"");
A.
""Hello World""
B.
""Hello World"
C.
"Hello World"
AnswerD.
Hello world
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board