Q. Which method defined in Integer class can be used to convert a whole number in string type to primitive int type.

  • (A) valueOf()
  • (B) intValue()
  • (C) parseInt()
  • (D) getInteger()
πŸ’¬ Discuss
βœ… Correct Answer: (C) parseInt()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
304
Total Visits
πŸ“½οΈ
5 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
87%
Success Rate