2010年6月22日

          Job Title: Insid Sales
          Job Description:
                  
          Qualifications:
                  1,Bachelor's degree in a IT or a related business discipline.
                  2,More 2'years work experience focus on tele-sales.
                  3,Ability to open conversations and close deals.
                  4,Proven track on achieving sales target.
                  5,Knowledge in IT tools.
                  6,Good communication skills and skilled on tele-sale.
                  7,Proactive and team oriented.

          posted @ 2010-06-22 13:52 cjcj 閱讀(135) | 評論 (0)編輯 收藏

          2010年3月9日

          -Latest I have read a book about java,there are some events which we should care about...So there are some staff here.

            Staff 1:Stricken Testing

              this staff testing how do you know about recursion,so the follow program will do what?

          public class Workout {
          public static void main(String[] args) {
                 workHard();
                 System.out.println(
          "It's nap time.");
          }
          private static void workHard() {
          try {
              workHard();
             } 
          finally {
            workHard();
          }
          }
          }

          If there is no try-finally statement,the program behavior will be very clear: workhard method recursively call it own until the program throws StackOverflowError exception,it does not catch the exception to the end.However,try-finally statement make things complicated.When the program throws StackOverflowError,it will be in the finally block of workhand terminated.In this way,it recusively calls itself.It looks like an infinite-looping indeed,but is it really an infinite-looping?If you run it ,it seems really do it just you suppose.but the only way to confirm it is going to analyse its action.

          Staff 2 Domain Problem
             Let's see some codes first.

           

          static void copy(String src, String dest) throws IOException {
          InputStream in 
          = null;
          OutputStream out 
          = null;
          try {
              in 
          = new FileInputStream(src);    
              out 
          = new FileOutputStream(dest);
              
          byte[] buf = new byte[512];
              
          int n;
              
          while ((n = in.read(buf)) > 0)
              out.write(buf, 
          0, n);
              } 
          finally {
                  
          if (in != null) in.close();
                  
          if (out != null) out.close();
              }
          }

           
          You see,this process looks like all right.All streams initialized to null,and once new stream created,they immediately set new values.If they not null,the finally block will help closing it even happened a exception.the finally block will be excuted before the method returns.So what is wrong here?
              The problem is the finally block itself,closing stream may also throw an excpeiton.If it happened on 'in' stream,the exception will be result in that 'out' stream will never be closed so that the out stream remains in the activity!!

          To be continuing...

          posted @ 2010-03-09 10:16 cjcj 閱讀(1253) | 評論 (0)編輯 收藏

          僅列出標題  
          主站蜘蛛池模板: 留坝县| 简阳市| 灵宝市| 寻甸| 图片| 公主岭市| 涞水县| 康定县| 农安县| 巧家县| 青海省| 顺义区| 赫章县| 苗栗县| 辛集市| 肃南| 台东县| 六盘水市| 平江县| 临武县| 嘉荫县| 东乌珠穆沁旗| 台湾省| 勐海县| 郸城县| 开化县| 西和县| 淄博市| 交口县| 绥宁县| 阿拉尔市| 龙州县| 侯马市| 西充县| 富裕县| 兰考县| 北碚区| 富宁县| 天峻县| 岳普湖县| 左云县|