- 
          
          java String equals() 사용시 Tip♣ Tech & Biz Salon/Tech 2012. 3. 22. 10:411. 일반적인 코딩방식 
 if( pushHead.getServerType().equals("APNS") )
 { ...
 
 pushHead.getServerType() 값이 Null 일때 Exception 발생
 
 2. Tip
 if( "APNS".equals( pushHead.getServerType() ) )
 { ...
 
 pushHead.getServerType() 값이 Null 일때 Exception 발생하지 않음.
 
 '♣ Tech & Biz Salon > Tech' 카테고리의 다른 글(새삼스럽지만) mysql 많이 좋아졌네, 공부 좀 하려는 중 (0) 2012.03.23 Mysql Numbering Function Sample (0) 2012.02.24 Mysql Numbering SP Sample (0) 2012.02.24