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이 가장 제한적이지만 클래스 내에서만 접근 가능.

댓글 없음:

댓글 쓰기

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

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...