Why makers of Java didn't give the main() function Public and Static as an inbuilt functionality?
Interface Methods have inbuilt functionality of being abstract and public (ie we do not neccessarily have to declare them Abstract / Public)
Similiarily Interface Variables are Public, Static and Final!!
Obviously there are certain reasons for this!!
My doubt is why dint the makers of Java give the main() function Public and Static as an inbuilt functionality? I mean main() is the Starting point of program execution and it must be accessible from everywhere , thats why we use static public, i know!!
but Since Everytime we use main(), if it has to be static and public, then why dint they makers of java give it an in-built functionality??
Similiarily Interface Variables are Public, Static and Final!!
Obviously there are certain reasons for this!!
My doubt is why dint the makers of Java give the main() function Public and Static as an inbuilt functionality? I mean main() is the Starting point of program execution and it must be accessible from everywhere , thats why we use static public, i know!!
but Since Everytime we use main(), if it has to be static and public, then why dint they makers of java give it an in-built functionality??
0