Q. What happens if set_body() is called with null body?

  • (A) Returns false
  • (B) Throws NullPointerException
  • (C) Ignores the call
  • (D) Creates empty body
πŸ’¬ Discuss
βœ… Correct Answer: (B) Throws NullPointerException
Explanation: It throws NullPointerException if the body is null.
Explanation by: Roshan
It throws NullPointerException if the body is null.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
7
Total Visits
πŸ“½οΈ
2 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
96%
Success Rate