System类-exit()
来源:互联网 发布:淘宝客推广网站怎么建 编辑:程序博客网 时间:2024/06/06 00:49
一 exit()
exit(0) 虚拟机正常退出
exit(1)不正常退出
二 代码
利用exit()中断程序执行
/*** Created by hanshan on 2017/1/7 0007.*/public class exitDemo { public static void main(String[] args){ System.out.println("我是小明"); System.exit(1); System.out.println("我是小红"); }}
0 0
- System类-exit()
- System.exit(0),System.exit(1)和System.exit(-1)
- System.exit(0)和System.exit(1)
- System.exit(-1);和System.exit(0);
- //System.exit(0);
- System.exit(0)
- System.exit()函数
- System.Environment.Exit
- System.exit(0)
- System.exit()问题
- 关于System.exit(status)
- System.exit(0)
- System.exit()用法
- System.exit(0)
- JAVA system.exit
- System的exit
- System类详解-2 exit gc runFinalization identityHashCode
- System.exit(0)和System.exit(1) 和return
- getVisibleSize 和 getContentSize 和 getWinSize
- Java停止线程及有锁时停止方法
- OpenCms前台添加可拖拽内容只显示部分类型的资源
- JNI基础(二)Android Studio 配置NDK
- 03-Oracle入门之简介
- System类-exit()
- 合并排序
- 对'\0'的理解
- AOE图及拓扑排序
- JavaScript 绑定事件时的闭包问题
- 设计模式
- C#获取web.config连接数据库字符串
- phonegap的二维码扫描功能的实现
- 等号和equals的坑