Java应用分类
一、应用程序。指在操作系统上直接运行的,不是浏览器,Java环境用本机的,需要在客户端安装,Java环境可以一起安装。
1、GUI图形界面应用程序
2、命令行应用程序
例子public class helloworld//程序文件名helloworld.java
{
public static void main(String args[])//主类,入口
{
System.out.println("helloworld");
}
}
3、嵌入式应用程序
二、Servlets服务器端应用程序。
收集客户端的数据输入,处理数据后,返回相应的响应给客户端,主要实现与客户端的交互。
三、Applets小应用程序。
嵌入到HTML网页中,用<Applet></Applet>标签识别。