UBS Java Interview Questions

Upasana | July 31, 2020 | 2 min read | 1 views | investment banking


Focus is mostly on Engineering Processes and Code Quality. You must be aware of Agile, Test Driven Development (TDD), various frameworks for Unit Testing, Integration Testing, etc. A good hold over concepts like Multi-threading, Java Memory Model, Garbage Collection, Algorithms, Java Collections, Queues is required. Developer should be familiar with the IDE and its shortcuts - IntelliJ IDEA or Eclipse STS.

Interview Questions

Core Java

  1. Talk about concurrency utils i.e. Atomic package?

  2. What is a volatile keyword?

  3. What is a future? How is it used in ExecutorService?

  4. Design your own custom Threadpool executor with minimal functionality

  5. What do you understand by Java Memory Model

  6. Why is AtomicInteger class better than a synchronized counter class? What is CAS?

  7. What is difference between ExecutorService and ForkJoinPool?

  8. Explain Producer Consumer Problem using Blocking Queue in Java

  9. How will you implement your own thread-safe blocking queue in Java?

Design Patterns

  1. What is decorator design pattern?

  2. What is Singleton Design Pattern, how will you make it thread-safe?

Design Problem

  1. How will you design online library management system using TDD and Agile? Using testcases for requirements.

Books and References

Buy my ebook for bigger question bank

Most of these questions has been answered in my eBook "Cracking the Core Java Interview" updated on June 2018, that you can buy from this link:

Buy from Shunya (DRM Free PDF download with updates)

Top articles in this category:
  1. Sapient Global Market Java Interview Questions and Coding Exercise
  2. Morgan Stanley Java Interview Questions
  3. Multi-threading Java Interview Questions for Investment Bank
  4. Citibank Java developer interview questions
  5. Goldman Sachs Java Interview Questions
  6. ION Trading Java Interview Questions
  7. BlackRock Java Interview Questions

Recommended books for interview preparation:

Find more on this topic: