Top Java Interview Questions for investment banks, health care IT, product companies, e-commerce on Core Java, Spring, Hibernate, Concurrency, Algorithms, Data Structures, Design Patterns, interview questions for experienced.
Monday, February 23, 2015
Citibank Java Interview Questions
Discuss method overriding in Java ?
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 ?
What is difference between Future and Callable interface in Java ?
When should I use StringBuilder class in a program ?
Tell me about your understanding of Executor Framework. How is it different from Fork Join Framework ?
What is a Immutable Class ? How does it help in writing scalable applications ?
What is thread safety ? How do you achieve it ?
How will you handle ConcurrentModificationEXception ?
What is difference between poll() and remove() method of an Queue ?
What is difference between fail-fast and fail-safe iterators ?
How are Concurrent Collections different from Synchronized collections ?
What is difference between vector and ArrayList ?
What is difference between HasSet and Hashmap ?
What is CopyOnWriteArrayList, how it is different than ArrayList and Vector?
when to use serialization vs externalizable interface?
How do you pass a job from Thread 1 to Thread 2 to Thread 3 ?
How will you implement a Queue in Java ?
Discuss Singleton and Decorator Design Pattern. Discuss the practical usage of these design patterns. How to make singleton class thread safe ?
How will you implement pagination in a web application ?
What is difference between Factory and Abstract Factory Design Pattern ?
you have array of n size having numbers between 1 to 100. you need to provide algorithm for sorting array with BigO(n) iteration.
How will you implement your own Binary Tree in Java ?
There is a very big text file containing words ? How would you read & process it to print the below output. 1. Print the top ten ranked distinct words. 2. Print the occurrence of the each alphabet in this file consider that the file can not fit into main memory of computer.
How will you design your custom Connection Pool in Java ?
Write a SQL to find the nth maximum salary in a employee table.
What is Inner Join, Left outer join ?
What are different types of database indexes ?
You will find most of these questions answered in my eBook "Cracking Core Java Interviews"