UBS Top 10 Java Interview Questions

Carvia Tech | May 18, 2019 | 2 min read | 453 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. Top 50 Multi-threading Java Interview Questions for Investment Bank
  3. BlackRock Top Java Interview Questions: Investment Banking Domain
  4. Morgan Stanley Investment Banking Java Interview Questions
  5. Top 20 Java Concurrency Interview Questions and Answers
  6. Citibank Java developer interview questions
  7. RBS Java Programming Interview Questions



Find more on this topic:
Java Interviews image
Java Interviews

Interview - Product Companies, eCommerce Companies, Investment Banking, Healthcare Industry, Service Companies and Startups.

Last updated 1 month ago


Recommended books for interview preparation:

This website uses cookies to ensure you get the best experience on our website. more info