M
Manish
Hi,
One thing that has always interested me is that whenever the stack
trace is printed when an exception occurs, the line number(s) of the
line(s) which caused the exception are also printed.
For example the following code :
class test
{
public static void main (String [] args)
{
int i = 42 / 0 ;
System.out.println(i) ;
}
}
generates the following trace :
Exception in thread "main" java.lang.ArithmeticException: / by zero
at test.main(test.java:5)
Is there any article/post which explains how such a feature is
implemented in java ? If this question has already been answered could
someone please direct me to the correct page ?
One thing that has always interested me is that whenever the stack
trace is printed when an exception occurs, the line number(s) of the
line(s) which caused the exception are also printed.
For example the following code :
class test
{
public static void main (String [] args)
{
int i = 42 / 0 ;
System.out.println(i) ;
}
}
generates the following trace :
Exception in thread "main" java.lang.ArithmeticException: / by zero
at test.main(test.java:5)
Is there any article/post which explains how such a feature is
implemented in java ? If this question has already been answered could
someone please direct me to the correct page ?