A Java application is a standalone Java program-- a program written in the Java language that runs independently of any browser.
Example:
/**
@ surendranadh reddy
* The HelloWorldApp class implements an application that
* simply displays "Hello World!" to the standard output.
*/
class HelloWorldApp
{
public static void main(String[] args)
{
System.out.println("Hello World!"); //Display the string.
}
}
output:
No comments:
Post a Comment