Java 异常处理

xiaoxiao2021-02-28  4

http://www.verejava.com/?id=16992965615177

package com.test; public class Test { public static void main(String[] args) { try { throw new ClassNotFoundException("hello"); } catch (ClassNotFoundException e) { e.printStackTrace(); } /*String a="a"; int num=Integer.parseInt(a); try { Class.forName("com.ss"); } catch (ClassNotFoundException e) { e.printStackTrace(); }*/ } }

http://www.verejava.com/?id=16992965615177

转载请注明原文地址: https://www.6miu.com/read-2000125.html

最新回复(0)