Hero Image
- Mihai Surdeanu

(#4) Tricky Java Questions for Interviews

Motto: About class loaders and nulls...

Q1: Which of the following class loaders is (are) written in C language to be as fast as possible?

Select one or multiple options:

  1. System class loader
  2. Platform class loader
  3. Bootstrap class loader

Q2: What's the output printed to console?

public static void main(String[] args) {
    System.out.println(null == null);
}

Q3: Enumerate all differences between LocalDateTime and Instant. Both classes were introduced in Java 8.

Other Related Posts:

Microbenchmarking with Java

Microbenchmarking with Java

Hello guys,

Today, we are going to continue the series of articles about Java ecosystem. More specific, today, we are going to talk about JMH (Java Microbenchmark Harness).

2nd Apr 2022 - Mihai Surdeanu