Q. Which is correct about an instance variable of type String?

  • (A) It defaults to an empty string.
  • (B) It defaults to null.
  • (C) It does not have a default value.
  • (D) It will not compile without initializing on the declaration line
πŸ’¬ Discuss
βœ… Correct Answer: (B) It defaults to null.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
1443
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
96%
Success Rate