2
As exceptions are interruptions caused most of the time by the operating system, I wonder if there is any cost of memory (stack/heap) since, existing exception treatment the program continues to run even with the interruption. This protection generates cost in the memory of my application?
Exceptions are not interruptions, this is a consequence and the one who causes exceptions in your application is yourself, not the OS. On the question: http://answall.com/questions/5888/exce%C3%A7%C3%b5es-consumim-muito-processamento-verdade-ou-lenda
– Caique C.
I think you’re confusing the concepts of interruption, pitfalls and exceptions.
– Vinícius Gobbo A. de Oliveira
@Caique C. you are correct, I really expressed myself badly, however the operating system can also generate interruptions.
– Wellington Silva Ribeiro