- Which of the following is true about Java performance optimization?
View Answer
Correct answer: D — All of the above
- Which JVM option enables garbage collection logging?
View Answer
Correct answer: C — -verbose:gc
- What will be printed?
1 System.out.println(Runtime.getRuntime().availableProcessors() > 0); View Answer
Correct answer: A — true
- Which of the following is true about memory leaks in Java?
View Answer
Correct answer: D — All of the above
- Which of the following is NOT a garbage collector in Java?
View Answer
Correct answer: D — SQL GC
- Which of the following is true about JVisualVM?
View Answer
Correct answer: D — All of the above
- Which of the following is true about heap vs stack memory?
View Answer
Correct answer: D — All of the above
- What will be printed?
1 int[] arr = new int[5]; 2 System.out.println(arr.length); View Answer
Correct answer: B — 5
- Which of the following is true about Java profiling tools?
View Answer
Correct answer: D — All of the above
- Which of the following is true about thread dumps?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Java Flight Recorder (JFR)?
View Answer
Correct answer: D — All of the above
- Which of the following is NOT a JVM memory area?
View Answer
Correct answer: D — CacheSpace
- Which of the following is true about performance tuning best practices?
View Answer
Correct answer: D — All of the above
- What will be printed?
1 String s = null; 2 System.out.println(s == null); View Answer
Correct answer: A — true
- Which of the following is true about deadlocks?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Java memory management improvements in JDK 11+?
View Answer
Correct answer: D — All of the above
- Which of the following is true about debugging tools in Java?
View Answer
Correct answer: D — All of the above
- Which of the following is true about performance bottlenecks?
View Answer
Correct answer: D — All of the above
- Which of the following is NOT a Java profiling tool?
View Answer
Correct answer: D — Oracle SQL Developer
- What will be printed?
1 System.out.println(Integer.MAX_VALUE + 1); View Answer
Correct answer: A — Overflow to negative
- Which of the following is true about JVM heap dump analysis?
View Answer
Correct answer: D — All of the above
- Which of the following is NOT a JVM garbage collector?
View Answer
Correct answer: D — SQL GC
- What will be printed?
1 System.out.println(Math.min(10, 20)); View Answer
Correct answer: A — 10
- Which of the following is true about thread pools?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Java Mission Control?
View Answer
Correct answer: D — All of the above
- Which of the following is true about synchronized blocks?
View Answer
Correct answer: D — All of the above
- Which of the following is NOT a Java debugging tool?
View Answer
Correct answer: D — SQL Profiler
- What will be printed?
1 String s = "Eduinq"; 2 System.out.println(s.hashCode() > 0); View Answer
Correct answer: A — true
- Which of the following is true about performance profiling techniques?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Java memory tuning?
View Answer
Correct answer: D — All of the above
- Which of the following is true about deadlock detection?
View Answer
Correct answer: D — All of the above
- Which of the following is NOT a JVM memory area?
View Answer
Correct answer: D — CacheSpace
- Which of the following is true about Java performance best practices?
View Answer
Correct answer: D — All of the above
- What will be printed?
1 System.out.println(Integer.parseInt("100") + 50); View Answer
Correct answer: A — 150
- Which of the following is true about JProfiler?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Eclipse Memory Analyzer (MAT)?
View Answer
Correct answer: D — All of the above
- Which of the following is true about performance bottlenecks in Java?
View Answer
Correct answer: D — All of the above
- Which of the following is NOT a JVM tuning parameter?
View Answer
Correct answer: D — -XX:+UseSQLGC
- What will be printed?
1 System.out.println("Debug".length()); View Answer
Correct answer: B — 5
- Which of the following is true about Java Flight Recorder events?
View Answer
Correct answer: D — All of the above
- Which of the following is true about best practices in debugging?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JVM Metaspace?
View Answer
Correct answer: D — All of the above
- Which of the following is true about thread safety best practices?
View Answer
Correct answer: D — All of the above
- Which of the following is true about performance optimization in databases?
View Answer
Correct answer: D — All of the above
- What will be printed?
1 System.out.println(Math.max(50, 100)); View Answer
Correct answer: B — 100
- Which of the following is true about Java thread dumps analysis?
View Answer
Correct answer: D — All of the above
- Which of the following is true about profiling vs monitoring?
View Answer
Correct answer: D — All of the above
- Which of the following is NOT a Java logging framework?
View Answer
Correct answer: D — SQLLogger
- Which of the following is true about Java performance testing tools?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Advanced Topics overall?
View Answer
Correct answer: D — All of the above