2011년 2월 23일 수요일

basic problems

Which statement is true?

A. Assertions can be enabled or disabled on a class-by-class basis.

B. Conditional compilation is used to allow tested classes to run at full speed.

C. Assertions are appropriate for checking the validity of arguments in a method.

D. The programmer can choose to execute a return statement or to throw an exception if an assertion fails.





A. 정답

B. 먼솔?

C. 파라미터만 체크하는거 아니지.

D. 그건 try catch... 어썰션은 에러를 내고 로그 출력 형태임.




You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?

A. public

B. private

C. protected

D. transient

E. default access




디폴트로 하면 같은 패키지 내에서 가능... private이 가장 제한적이지만 클래스 내에서만 접근 가능.

댓글 없음:

댓글 쓰기

국정원의 댓글 공작을 지탄합니다.

대학원생의 투고 지도 ④ (완결) — 논문의 수준이란 무엇인가: 사다리와 사분위, 첫 논문 전략

완결편이다. "논문 수준"이라는 말을 해부하고, 에듀테크 석사생의 첫 논문 전략으로 마친다. 학위논문과 학술지 논문은 다른 장르다 먼저 가장 흔한 혼동부터. 학위논문(thesis)은 "내가 연구를 수행할 줄 안다...