Lets say if main method we declared it as private?What will happen?
Explaination:
When main method is declared as private, it will shows you
message says "Main method not public" during runtime.Of course it will
compile properly.
© Blogger template The Beach by Ourblogtemplates.com 2009
Back to TOP
No comments:
Post a Comment