Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Muaz Bashara   on Oct 07 In Java Category.

  
Question Answered By: Addison Campbell   on Oct 07

The main() method has to be public because a PRIVATE method can not access the
PUBLIC class and PUBLIC class members and member functions as a lower access
specifier cannot access the one higher to it whereas vice-versa is possible.

Share: 

 

This Question has 9 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on private static void main Or get search suggestion and latest updates.


Tagged: