If your entire program looks exactly as in your first post, it will stop after running for some time with either a StackOverflowError or an OutOfMemoryError, because there's an unbounded recursive call in it: you call the main() method from the main() method itself. It will keep calling itself over and over again until the stack overflows or you have created so many LocalMain objects that the memory is exhausted.
Just tried to compile and run your program: I got a StackOverflowError. [ December 07, 2005: Message edited by: Jesper de Jong ]
As Jesper said, you name does not conform to our naming policy. It's one of the few rules we have around here, and we take it pretty seriously. Basically, you need a first name, a space, and a last name. No obviously ficticious names are allowed, either.
Originally posted by Nipun Devlekar: Thanks for your replies i did not get a stack error but a continuous running screen . As i am using a unix OS i did not get error;may be stack error reports in DOS .
You'll just have to wait a bit longer for the stack overflow...