A

Admin • 832.27K Points
Coach

Q. How can you check if a string is empty?

  • (A) s.length() == 0
  • (B) s.isEmpty()
  • (C) s == ""
  • (D) All of the above

Explanation by: Admin

All three options are valid ways to check if a string is empty.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.