Advertisements
Advertisements
Question
System.out.println("I said,\“It\'s wise to obey elders.\””);
The output of the above statement is:
Options
I said,‘It is wise to obey elders.’
I said, “It’s wise to obey elders.”
I said,It’s wise to elders.
“'It's wise to obey elders.'”
MCQ
Advertisements
Solution
I said, “It’s wise to obey elders.”
Explanation:
The '\’ An escape sequence hides the special meaning of a character.
shaalaa.com
Is there an error in this question or solution?
2024-2025 (March) Official Board
