❓︱qotw-answers

175 threads · Page 1 of 4

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