0
Why we use exception in cpp and java?
4 Answers
+ 3
Sometimes errors can occur like when a program converts a String to an Integer (Word to a Number)
if the String is "1" it can be translated to 1
but if String is "Apple" it cannot be converted to a number, thus it would throw an Exception (error)
So we use try and catch to monitor that everything is working how it should.
+ 2
Monads?
0
Good question. Monads are much more useful.
0
what is monads guys?