Write a problem to throw an exception
create a class that can have only five instances and should throw an exception if more than 5 is created ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 16, 2020, 11:18 PM EDT
Munib ButtRank #156 · 14.9K reputationPosted Jun 27, 2020, 5:39 AM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Apr 16, 2020, 11:05 PM EDT