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?

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.


Blogging

No comments:

Post a Comment

5L15K

  © Blogger template The Beach by Ourblogtemplates.com 2009

Back to TOP