Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

main

You are here: irt.org | FOLDOC | main

<programming> The name of the subroutine called by the run-time system (RTS) when it executes a C program. The RTS passes the program's command-line arguments to main as a count and an array of pointers to strings. If the main subroutine returns then the program exits.

Java has inheritted the name "main" from C but in Java it's more complicated of course. The main routine must have a signature of exactly

 public static void main(String [])

And it must be inside a public class with the same name as the source file where it is defined.

(2008-11-12)

Nearby terms: Mail Transport Agent « mail user agent « Mail Users' Shell « main » MAINBOL » Main Distribution Frame » mainframe

FOLDOC, Topics, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, ?, ALL

©2018 Martin Webb