❓︱qotw-answers
Week 181 — What is the purpose of the instanceof keyword?
Week 180 — What is a switch statement and how does it work?
Week 179 — What is a thread dump and how can one create it?
Week 178 — How can one read and write zip files in Java applications?
Week 177 — How do assertions work in JUnit?
Week 176 — How can one convert between absolute and relative paths in a Java program?
Week 175 — How can one run the same test multiple times with different parameters in JUnit?
Week 174 — What are flexible constructor bodies?
Week 173 — What is the (initial) capacity of ArrayLists?
Week 172 — What are weak references?
Week 171 — What does NavigableSet add to normal Sets?
Week 170 — What is the BitSet class and how can one use it?
Week 169 — How can one print all elements of an array?
Week 168 — How can one use the java.util.HexFormat class?
Week 167 — What is the String.format method and how can one use it?
Week 166 — What is the SecureRandom class and how can it be used?
Week 165 — What are Scoped Values and how does it related to ThreadLocal?
Week 164 — What is a fully qualified name?
Week 163 — What is a stack trace?
Week 162 — How can one implement a binary tree in Java?
Week 161 — How can one iterate over a list in reverse order?
Week 160 — How can one create a simple HTTP endpoint using JAX-WS (Jakarta EE)?
Week 159 — How can one delete a file in Java?
Week 158 — How can one establish a TCP connection in a Java program?
Week 157 — How can one read the content of a text file in a Java program?
Week 156 — What is the javap tool and what is it used for?
Week 155 — What thread-safe collections does Java provide?
Week 154 — How can one safely remove elements while iterating over a collection?
Week 153 — What is the native-image tool and what is it used for?
Week 152 — How can one use tools like VisualVM to profile Java applications?
Week 151 — How can one use CDS archives to improve startup of Java applications?
Week 150 — What is a preview JDK feature?
Week 149 — What is String interning?
Week 148 — What are module import declarations and how are they used?
Week 147 — What is the assert keywords and how can one use it?
Week 146 — What is an ArrayList?
Week 145 — What is the Semaphore class and what is it used for?
Week 144 — What is a record pattern and how can one use it?
Week 143 — How can one encrypt a message using RSA?
Week 142 — What is jshell?
Week 141 — What kinds of comments can be used in Java and how do they differ?
Week 140 — What are multi-release JARs and how are they structured?
Week 139 — What is JPA (Jakarta Persistence)?
Week 138 — What is a system property and how can it be passed to a Java application?
Week 137 — What primitive types does Java provide and how do they differ?
Week 135 — What is SOLID in the context of OOP?
Week 134 — What is JFR (JDK Flight Recorder)?
Week 133 — How can one use a newer JDK to compile applications for an older Java version?
Week 132 — How can one compute an SHA-256 hash in a Java application?
Week 131 — How can one set the garbage collector used by a Java application?