???????Java?е??????????
???????????? ???????[ 2015/3/16 13:43:25 ] ????????Java ??????? ???? ??
?????????????????????????????????????????????JDBC?????????????????(??????????????????????????????????????????????????)
????Try…finally??????????????????????Ρ???????????????й????л???????????????????????????????????try?????”????”??????а?????????finally?н???????????????????????
????public void readFile(){
????BufferedReader reader=null;
????try{
????reader=new BufferedReader(new InputStreamReader(
????new FileInputStream("file")));
????//do some other work
????//close reader
????reader.close();
????}catch(FileNotFoundException e){
????e.printStackTrace();
????}catch(IOException e){
????e.printStackTrace();
????}
????}
????????????????????????????????????????????????????????????????reader???????????????Υ???????reader.close()???????????????????????????????????κ???????????????????????????????????????????????(?????????????????????)??????????????try…finally??????
????public void readFile(){
????BufferedReader reader=null;
????try{
????try{
????reader=new BufferedReader(new InputStreamReader(
????new FileInputStream("file")));
????//do some other work
????//close reader
????}finally{
????reader.close();
????}
????}catch(FileNotFoundException e){
????e.printStackTrace();
????}catch(IOException e){
????e.printStackTrace();
????}
????}
??????????????????????????????????????????????????????????????????try…finally???????????(??????鷳??java??????й??о?)??
???????????????????????????????д?????????????????JDBC????????????????????????????????????????????????????м?????????????????????????????????????????????????????????
????public class ResourceInConstructor{
????BufferedReader reader=null;
????public ResourceInConstructor(){
????try{
????reader=new BufferedReader(new InputStreamReader(new FileInputStream("")));
????}catch(FileNotFoundException e){
????e.printStackTrace();
????}
????}
????public void readFile(){
????try{
????while(reader.readLine()!=null){
????//do some work
????}
????}catch(IOException e){
????e.printStackTrace();
????}
????}
????public void dispose(){
????try{
????reader.close();
????}catch(IOException e){
????e.printStackTrace();
????}
????}
????}
??????????????????????????????????????????????????????java?л????к???????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????