java - How does Karel run without "main" method? -


I was thinking like a run in the program because it does not use the main () method instead of it () method Used:

  Import Stanford. Karel Karel; Public Class Collect Notes Kerala Kerala (Public zeroless) (move ()); }}  

How does this work?

The actual main method is elsewhere, for example, when Java program executes, The runner is actually executing the main method in class. Your run method is called that runner code.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -