posted 11 years ago
I tried to run the following program in ubuntu 11.04 using jdk6.0 and windows vista using jdk 7.0 and got two different outputs:
class M
{
static
{
System.out.println("SIB");
}
}
for jdk 6.0 the output was : SIB
from main exception
for jdk the output was: from main exception
For some programs the output was same in both the jdks but not in this one