Public Class Tester Public Shared Sub Main Dim A, B As Integer Dim C As Integer Try A = 9999 B = 9999 C = A * B * B * B Catch Except As OverflowException Console.WriteLine("Overflow error detected") End Try End Sub End Class
Overflow error detected