UBS Top 10 Java Interview Questions

Carvia Tech | May 18, 2019 at 06:58 PM | 334 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 Banking Domain
  3. BlackRock Top Java Interview Questions: Investment Banking Domain
  4. Morgan Stanley Java Interview Questions
  5. Citibank Java developer interview questions
  6. RBS Java Interview Questions
  7. Cracking core java interviews - question bank


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:
You may also be interested in..
Generic placeholder image
ebook PDF - Cracking Spring Microservices Interviews for Java Developers
You may also be interested in..
Generic placeholder image
ebook PDF - Cracking Java Interviews v3.5 by Munish Chandel

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