TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
frank gruber
NA
2
2.6k
Console Application Riddle
May 9 2014 10:36 PM
I have read that a static method is one which can be called from from anywhere in the solution without instantiating the class containing the method. So here's my question -
W/ A Console Application - Why does the program entry point of execution, i.e. static main (), have to be static. That method generally lies within the 'Program Class' which, in a common sense way is never instantiated in an object sense. So why the necessity for static in 'static main()'.???
Also, It is possible to have the 'static main()' inside of a class which is not static, so doesn't that go against convention? i.e. static methods have to go inside static classes????
thanks Gents,
Frank
Reply
Answers (
1
)
Creating folders and files in directory
null value into null object