Ask Google

Custom Search

Monday, February 21, 2011

Ask Java 5

Topic for today we will cover simple basic question regarding access right.
Lets say if main method we declared it as private?What will happen?

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.


No comments:

Post a Comment


  © Blogger template The Beach by 2009

Back to TOP