求大神指导
所有的异常必须处理,整个程序运行当中不允许出现任何异常,并且形成对应的异常日志(日志必须每天分开记录)如:log20190816.txt2019-08-1614:52:2...
所有的异常必须处理,整个程序运行当中不允许出现任何异常,并且形成对应的异常日志(日志必须每天分开记录)
如:
log
20190816.txt
2019-08-16 14:52:20 Exception in thread "main" java.lang.ArithmeticException: / by zero / at Thread.Demo02.main(Demo02.java:29) 除数不能为0
2019-08-16 14:57:22 Exception in thread "main" java.lang.NullPointerException
/at Thread.Demo02.main(Demo02.java:59)空指针异常
...
20190817.txt
2019-08-16 14:52:20 Exception in thread "main" java.lang.ArithmeticException: / by zero / at Thread.Demo02.main(Demo02.java:29) 除数不能为0
2019-08-16 14:57:22 Exception in thread "main" java.lang.NullPointerException
/at Thread.Demo02.main(Demo02.java:59)空指针异常 展开
如:
log
20190816.txt
2019-08-16 14:52:20 Exception in thread "main" java.lang.ArithmeticException: / by zero / at Thread.Demo02.main(Demo02.java:29) 除数不能为0
2019-08-16 14:57:22 Exception in thread "main" java.lang.NullPointerException
/at Thread.Demo02.main(Demo02.java:59)空指针异常
...
20190817.txt
2019-08-16 14:52:20 Exception in thread "main" java.lang.ArithmeticException: / by zero / at Thread.Demo02.main(Demo02.java:29) 除数不能为0
2019-08-16 14:57:22 Exception in thread "main" java.lang.NullPointerException
/at Thread.Demo02.main(Demo02.java:59)空指针异常 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询