Markit Java Interview Questions

Upasana | October 01, 2020 | 2 min read | 215 views | investment banking


Most investment banking companies need skills like inheritance, multi-threading, concurrency, collections, java design patterns, spring framework, basic knowledge of database - indexes, joins and working knowledge of queue etc.

Core Java

  1. Explain the concept of String immutability. What is String pool. How will you create your own String like class.

  2. Explain Serialization. Overriding writeObject method.

  3. What is a class loader.

  4. What are Java locks. class level lock vs lock on objects.

  5. HashMap, ConcurrentHashMap, TreeSet internal implementation.

  6. What are Cyclic barrier and countdown latch.

  7. Implement producer-consumer problem in core java.

  8. How to make a Lock object wait for lock.

  9. How will you implement your own thread-safe Semaphore in Core Java?

Algorithm and Design

  1. You have an input stream of millions of numbers. Which is the suitable data structure for this kind of situation?

  2. What is "Hashing" concept and how is it implemented in java.

  3. Design your own Queue, PriorityQueue(using heap).

  4. Program to find the highest prime number less than a given number.

  5. Design a stack using linked list

  6. Write a program to implement a binary search tree and print the elements in-order.

Design Patterns

  1. Discussion on singleton design pattern: lazy initialization, eager initialization, also using inner classes. Difference between different approaches. why is one better than another?

Spring

  1. Which one is better constructor injection or setter injection.

  2. What is cyclic dependency of beans, how will you resolve that?

Misc

  1. What is Left Outer Join in RDBMS.

  2. SQL question including joins, group by

  3. 1 puzzle: there is a 2d array. the numbers in the array increase as you go down and as you move from left to right. find any given number with minimum complexity.

  4. A probability question (probability of getting minimum two 3’s if i roll 2 dice).


Buy my ebook for complete 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)

investment banking:
  1. Finastra Investment Banking Interview Questions
  2. Goldman Sachs Java Interview Questions
  3. Java topics covered in Investment Banking Interviews (Morgan Stanley, Barclays, RBS, UBS, BlackRock)
  4. Morgan Stanley Java Interview Questions
  5. UBS Java Interview Questions
  6. ION Trading Java Interview Questions
  7. Citibank Java developer interview questions
See all articles in investment banking
Top articles in this category:
  1. Sapient Global Market Java Interview Questions and Coding Exercise
  2. Morgan Stanley Java Interview Questions
  3. Citibank Java developer interview questions
  4. UBS Java Interview Questions
  5. Goldman Sachs Java Interview Questions
  6. ION Trading Java Interview Questions
  7. Multi-threading Java Interview Questions for Investment Bank

Recommended books for interview preparation:

Find more on this topic: