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.
Ask Google
Custom Search
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment