하나의 메서드가 cursor 를 획득해서 하는 일들로 구성되어 있다면 cursor를 처음에 획득을 하고 획득이 되지 않을 시 return을 해 버리면
하위에서 cursor가 null인지 검사할 필요가 없게 된다.
close는 해줘야 겠지만 :)
for 문에서 문제가 되는 API 있다면
int intServerId = 0;
try {
intServerId = Integer.parseInt(serverId);
} catch (Exception e) {
// TODO: handle exception do nothing
}
위와 같이 아무것도 안하는 루틴도 좋다.
Exception이 나면 for 문을 빠져나가 버린다.
--------------------------------------------------
개방위
피드 구독하기:
댓글 (Atom)
UPBIT is a South Korean company, and people died of suicide cause of coin investment.
UPBIT is a South Korean company, and people died of suicide cause of coin. The company helps the people who control the market price manipu...
-
□ native modifier 는 자바가 아닌 다른 언어로 작성된 코드를 자바에서 사용하기 위한 것 □ transient modifier 는 객체가 직렬 화되는 과정에서 해당 필드가 저장되지 않아야 한다는 것을 알리기 위해 사용 ...
-
연휴 마지막날 아침... 산책을 하다 한장 찍어보았다. 인생도 마찬가지로 길의 끝을 모른체 선택을 해야하는 경우가 발생한다. 나중에 그 기준이 바뀔수도 있지만. 지금 기준은 많은 사람이 함께 갈 수 있는 길을 선택하고 싶다.
-
#오픈그록을 외부페이지로 설정하기 위해 먼저 톰캣을 설치하여 보자 1. 톰캣? - 아파치 소프트웨어 재단에서 개발된 서블릿 컨테이너만 있는 웹 애플리케이션 서버. 톰캣은 웹서버와 연동하여 실행할 수 있는 자바환경을 제공하여 자바 서버 페...
댓글 없음:
댓글 쓰기
국정원의 댓글 공작을 지탄합니다.