My Hindi Forum

Go Back   My Hindi Forum > Miscellaneous > Tech Talks

Reply
 
Thread Tools Display Modes
Old 22-12-2009, 08:05 PM   #1
javaguru
Member
 
javaguru's Avatar
 
Join Date: Dec 2009
Posts: 50
Rep Power: 15
javaguru is on a distinguished road
Post Main Method as private?

What if the main method is declared as private?
javaguru is offline   Reply With Quote
Old 22-12-2009, 08:05 PM   #2
javaguru
Member
 
javaguru's Avatar
 
Join Date: Dec 2009
Posts: 50
Rep Power: 15
javaguru is on a distinguished road
Default

The program compiles properly but at runtime it will give “Main method not public.” message.
javaguru is offline   Reply With Quote
Reply

Bookmarks

Tags
java interview question

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT +5. The time now is 01:57 AM.


Powered by: vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
MyHindiForum.com is not responsible for the views and opinion of the posters. The posters and only posters shall be liable for any copyright infringement.