main method in super or abstract class
I wrote a simple code mentioned below and am not able to understand the way the output is generated.
abstract class Abc
public static void main(String args)
class Cont extends Abc
When i save the above program as Cont.java file and run it, it displays the output as hii. Can any one explain how did that happen? shouldn't there be runtime exception saying main method not found? Kindly help.
Re: main method in super or abstract class
My comment in http://www.java-forums.org/new-java/...tml#post289849 still stands.
I'm closing this thread. Please feel free to ask the question again after going through the link I provided in the other thread.