Skip to content

Instantly share code, notes, and snippets.

@BalicantaYao
Created June 17, 2017 15:15
Show Gist options
  • Save BalicantaYao/029dba92bd1c6eea66dd2dcdd4b89eb1 to your computer and use it in GitHub Desktop.
Save BalicantaYao/029dba92bd1c6eea66dd2dcdd4b89eb1 to your computer and use it in GitHub Desktop.
class Excperf {
public void method1(int size){
int [] ia = new int[size];
try{
for (int i = 0;i<size ; i++){
ia[i] = i;
}
} catch (Exception e){
}
}
public void method2(int size){
int [] ia = new int[size];
for (int i = 0;i<size ; i++){
try{
ia[i] = i;
} catch (Exception e){
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment