πŸ“Š JAVA
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+"\"");
}
}
  • (A) ""Hello World""
  • (B) ""Hello World"
  • (C) "Hello World"
  • (D) Hello world
πŸ’¬ Discuss
βœ… Correct Answer: (C) "Hello World"

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
110
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ram Avtar Sharma
Publisher
πŸ“ˆ
91%
Success Rate