class inside main method?
can we write class inside tne main method in java? If yes kindly explain with example.
[93 byte] By [
prakash27a] at [2007-11-26 14:35:06]

> can we write class inside tne main method in java? If> yes kindly explain with example.yes. I won't explain with example, because you can just try it for yourself. main is just a method like any other, it has no special meaning or magic to it
THAT'S NOT TRUE GEORGE, AND YOU KNOW IT!!! ... main is a very special method that if called exactly right will create an entire Java library that few - except us insiders - know anything about ... it's the real Java Library! Shhhhhhhh, don't let the cat out though. ;o}