application
is a Java program that runs standalone
applet
which we shall see runs
within a Web page.
main
method
main
method is the entry (i.e. starting) point of execution of the
program.
IDE
(integrated development environment
)
javac
executable
java
executable
class
main
method is often called an application class
(as we can use it as the entry point of the execution of an application).
public
, the name of the source file
MUST match the class name
AJavaConsoleApplication
must
be contained within a file named AJavaConsoleApplication.java
main
Method
main
method accepts a single parameter of a String array
argc
/argv
pair
sent to the main
function in C/C++.
println
method on System.out
sends the argument to the standard output device
System.err.
which sends its output
to the standard error device
iostream
in C++) (upper left)
System
class
out
'field'
err
'field'
PrintStream
class
println
method(s) in the class
overloaded
versions
of this method
print
method(s)
System.out.println("Hello World");
System
, out
, and println
play in the above statement?
Hello30