Questions you may hear when interviewing for a Java developer job.

Joined June 2014
Photos and videos
What are the trade offs between a public constructor and a static factory method?
8
1
What's the difference between StringBuffer and StringBuilder?
1
1
How does a generational garbage collector work?
1
1
What are the tradeoffs between using Collections.synchronizedList() on an ArrayList and a CopyOnWriteArrayList?
When would you use the stream processing APIs in Java8?
What does calling the intern() method on a string do? When, if ever, would you call it on a string literal?
What's the difference between a CountingSemaphore and a CountDownLatch?
True or false? Integer a = 3; Integer b = 3; System.out.println(a == b); What if you change 3 to "3" and Integer to String?
What are the advantages and disadvantages of using lock classes from java.util.concurrent.locks vs. synchronized methods & statements?
What are the differences between Collections.synchronizedMap(...) and ConcurrentHashMap?