a) Public b) Private c) Protected d) Void Answer: d ...
View QuestionGarbage Collection can be controlled by a program?
a) True b) False Answer: b Explanation: Garbage Collection cannot be controlled by a program.
View QuestionWhich of the below is not a memory leak solution?
a) Code changes b) JVM parameter tuning c) Process restart d) GC parameter tuning Answer: c Explanation: ...
View QuestionWhich of the below is not a Java Profiler?
a) JVM b) JConsole c) JProfiler d) Eclipse Profiler Answer: a Explanation: Memory leak is ...
View QuestionWhat happens to the thread when garbage collection kicks off?
a) The thread continues its operation b) Garbage collection cannot happen until the thread is running c) ...
View QuestionHow to get prints of shared object memory maps or heap memory maps for a given process?
a) jmap b) memorymap c) memorypath d) jvmmap Answer: a Explanation: We ...
View QuestionWhich exception is thrown when java is out of memory?
a) MemoryFullException b) MemoryOutOfBoundsException c) OutOfMemoryError d) MemoryError Answer: c Explanation: The Xms flag has no ...
View QuestionWhat is -Xms and -Xmx while starting jvm?
a) Initial; Maximum memory b) Maximum; Initial memory c) Maximum memory d) Initial memory Answer: a Explanation: JVM ...
View QuestionWhich of the following is a garbage collection technique?
a) Cleanup model b) Mark and sweep model c) Space management model d) Sweep model Answer: b Explanation: A ...
View QuestionWhere is a new object allocated memory?
a) Young space b) Old space c) Young or Old space depending on space availability d) JVM Answer: a
View Question