0
What is the output of the following Java program?
public class Main {
public static void main(String[] args) {
String s = "hello";
s.concat(" world");
s.toUpperCase();
StringBuilder sb = new StringBuilder("ab");
sb.append("cd").reverse();
System.out.println(s + " " + sb);
}
}- AHELLO WORLD
- Bhello dcba
- Chello abcd
- Dhello world dcba
Correct answer: B