Hi,
First of all if you look at the main method,no instance of abstract class is created
The next point is that the main method is a static one and there fore when you run the above code,it gets executed.
Change your code as per the following and you will get a compile time error
import java.io.*;
public abstract class test1
{
public static void main(String args[])
{
char c = 'a';
System.out.println("hello "+c);
test1
test = new test1();
}
public abstract void hello();
}
HTH,
Ramnath