I wrote a method and added an exception handling block.
I looked at the bytecode and I saw that it added the following line at the top of the method.
TRYCATCHBLOCK L0 L1 L2 java/lang/Exception
and not a lot of bytecode, in fact trythere is no bytecode in the block .
So, out of curiosity, If exceptions do not occur - do they affect performance?
btw is not a duplicate of this , as the answers are not related (dotnet, irrelevant tests).
source
share