Java 13 Interview Questions and Answers (2023)
- Q: When Java 13 was released?
- Q: What are features of Java 13?
- Q: What is AppCDS?
- Q: What Dynamic CDS Archives?
- Q: What was enhanced for Z Garbage Collector (ZGC) in Java 13.?
- Q: What has been improved in Reimplement the Legacy Socket API feature in Java 13?
Q: When Java 13 was released?Java 13 is the open-source reference implementation of version 13 of the Java SE Platform. JDK 13 reached General Availability on 17 September 2019
Q: What are features of Java 13?The aim of the LTS version is to complete the preview capabilities so that they are stable enough and look good for the next three years.
- Dynamic CDS Archives
- ZGC: Uncommit Unused Memory
- Reimplement the Legacy Socket API
- Switch Expressions (Preview)
- Text Blocks (Preview)
Q: What is AppCDS?The concept behind AppCDS is to create and share a class data archive once, so that the JVM does not need to recreate it. AppCDS greatly reduces the amount of time JVM spends on loading classes.
Q: What Dynamic CDS Archives?Commercial class-data sharing (CDS) feature was there since Java 8, however it gets evolved over several Java releases (10,12,13). Java 13 extended the feature to allow the dynamic archiving of classes at the end of Java
Q: What was enhanced for Z Garbage Collector (ZGC) in Java 13?Java 11 has introduced Z Garbage Collector (ZGC), which had short pause while cleaning up the heap memories and it was not returning unused memory to operating system even though memory was unused for long time. Now Java
13 has extended the feature to return unused heap memory to the operating system.