How can you get the filename (without the path) from a Path object?
Which of the following statements is MOST accurate about using synchronized blocks to achieve thread safety?
What is the most efficient way to check if a specific key "name" exists in a HashMap named userInfo?
Which of the following statements is true about interfaces in Java?
Which concurrent collection class in Java is specifically designed for high-performance, lock-free access for thread-safe operations?
Which of the following code snippets will print the numbers from 1 to 5 in descending order? Java for (int i = 1; i <= 5; i++) { // Option A System.out.println(i); } for (int i = 5; i > 0; i--) { // Option B System.out.println(i); } while (int i = 1; i <= 5; i++) { // Option C - Syntax error: initialization inside while loop System.out.println(i); } do { // Option D System.out.println(i); i--; } while (i > 0);