javascript
Brief description  about Online courses   join in Online courses
View aishwarya  rao 's Profile

heyy..

is main a keyword? can it be considered as a keyword?
Asked by aishwarya rao | Jul 29, 2012 |  Reply now
Replies (5)
View java-web teacher 's Profile
No, main is not a keyword as it is a method which is called by JVM whenever the java program runs and all other code are called from the main method.
Aug 7, 2012
View aishwarya rao 's Profile
yeah but when it is predefined that execution has to start from main, and main cannot be used every where. then why isnt it a keyword?
Aug 2, 2012
View nishikanth jagannath chavan 's Profile
As Java is case-sensitive Main is different from main. Java compiler will compile classes that do not contain a main( )method.But the Java interpreter has no way to run these classes. So,interpreter would report an error because it would be unable to find the main( ) method.
Aug 1, 2012
View nishikanth jagannath chavan 's Profile
This is the method at which the program will begin executing. All Java applications begin execution by calling main( ).
Aug 1, 2012
View rakesh kumar gupta 's Profile
No main is not a keyword it is Method (function)of java class
A java program starts from main method only..
Jul 30, 2012