java中try catch语句执行顺序简介

package com.string_lc;
/**
* @filename Test.java
* @author l
* @description 
*/
public class Test {  
    public static void main(String[] args) {  
    	String s = "asd123";
    	Integer userid = -1;
    	try {
			userid = Integer.parseInt(s);
		} catch (Exception e) {
			// ToId不为整型,说明不是给人员推送,可能是给设备推送
			System.out.println("e");
		}
		System.out.println(userid);
    }  
}  


你可能感兴趣的:(Java)