Mihai Surdeanu

(#7) Tricky Java Questions for Interviews

Q1: Think about some real use-cases when a blocking queue can be used in practice. Can you give one example of implementation for a blocking queue? Q2: In which situation a CopyOnWriteArrayList is preferred against another concurrent implementation...

Use logrotate to automatically manage your logfiles

Currently, I am using logrotate on all my VPS servers to automatically manage my logfiles and to avoid keeping them indefinitely. What’s the potential problem by keeping them forever? Quite simple and intuitive. At some point, my servers will...

(#6) Tricky Java Questions for Interviews

Q1: In which Java version, text blocks are available as preview feature? Java 10Java 11Java 12Java 13 Q2: What’s the output printed to console if you are using Java 11? public static void main(String[] args) { Map<String, String> myMap =...

Categorie aleasă: IT

Arhiva personală