2011년 2월 18일 금요일

JAVA BASIC

Which statement is true?

A. Memory is reclaimed by calling Runtime.gc().

B. Objects are not collected if they are accessible from live threads.

C. Objects that have finalize() methods are never garbage collected.

D. Objects that have finalize() methods always have their finalize() methods called before the program ends.

E. An OutOfMemory error is only thrown if a single block of memory cannot be found that is large enough for a particular requirement.




A. 호출만 할 수 있지 갱신은 GC가 알아서 함. 땡.

B. 정답

C. 그럼 메모리 폭발하겠군.

D. 보장 안됨. 이건 언어적 결함으로 보여짐 ㅡㅡ; 왜 만든겨.

F. heap, 영속적인 영역(perm 영역), OS 제공하는 native heap이 있는데 특히 OS 제공 영역은 JVM에서 단순한 원인으로 분석하기 힘듦.

댓글 없음:

댓글 쓰기

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

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