1.RuntimeException public class RuntimeException { public static void main(String[] args) { // TODO Auto-generated method stub String str="; int temp=Integer.parseInt(str); System.out.println(temp*temp); } } 查看parseInt方法的源代码如下: public static int pars…