Citibank Java Interview Questions

Munish Chandel | March 30, 2019 at 09:44 PM | 348 views | algorithm-datastructures

Java Questions

  1. Discuss method overriding in Java ?

  2. Discuss internals of a Hashmap ? What is Role of equals() and hashcode() method in Object class? What will be behavior if we override hashcode() method to always return 1?

  3. What is difference between Future and Callable interface in Java ?

  4. When should I use StringBuilder class in a program ?

  5. Tell me about your understanding of Executor Framework. How is it different from Fork Join Framework ?

  6. What is a Immutable Class ? How does it help in writing scalable applications?

  7. What is thread safety? How do you achieve it?

  8. How will you handle ConcurrentModificationEXception?

  9. What is difference between poll() and remove() method of an Queue?

  10. What is difference between fail-fast and fail-safe iterators?

  11. How are Concurrent Collections different from Synchronized collections?

  12. What is difference between vector and ArrayList ?

  13. What is difference between HasSet and Hashmap ?

  14. What is CopyOnWriteArrayList, how it is different than ArrayList and Vector?

  15. when to use serialization vs externalizable interface?

Design Problems

  1. How do you pass a job from Thread 1 to Thread 2 to Thread 3 ?

  2. How will you implement a Queue in Java ?

  3. Discuss Singleton and Decorator Design Pattern. Discuss the practical usage of these design patterns. How to make singleton class thread safe ?

  4. How will you implement pagination in a web application ?

  5. What is difference between Factory and Abstract Factory Design Pattern ?

  6. You have array of n size having numbers between 1 to 100. you need to provide algorithm for sorting array with BigO(n) iteration.

  7. How will you implement your own Binary Tree in Java ?

  8. There is a very big text file containing words ? How would you read & process it to print the below output.

  9. Print the top ten ranked distinct words.

  10. Print the occurrence of the each alphabet in this file, consider that the file can not fit into main memory of computer.

  11. How will you design your custom Connection Pool in Java ?

Misc Questions

  1. Write a SQL to find the nth maximum salary in a employee table.

  2. What is Inner Join, Left outer join ?

  3. What are different types of database indexes ?

You will find most of these questions answered in my eBook "Cracking Core Java Interviews"

You may also be interested in..
Generic placeholder image
ebook PDF - Cracking Java Interviews v3.4 by Munish Chandel
You may also be interested in..
Generic placeholder image
ebook PDF - Cracking Spring Microservices Interviews for Java Developers

Similar Articles:
  1. Top 50 Java Interview Questions for Investment Banking Domain & HealthCare IT
  2. Sapient Global Market Java Interview Questions and Coding Exercise
  3. BlackRock Java Interview Questions
  4. RBS Java Interview Questions
  5. Citibank Java Interview Questions
  6. ION Trading Interview Questions
  7. UBS Java Interview Questions
  8. Morgan Stanley Java Interview Questions
  9. Java Topics covered in Investment Banking Intreviews (Morgan Stanley, Barclays, RBS, UBS, BlackRock)
  10. Goldman Sachs Java Interview Questions for Senior Java Developer

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