CitiCorp Interview Questions
1. Variable used in Threading (say t1 works on Map, t2 should work after t1 finishes)
2. Circular Linked List. how to check if a list is circular?
3. What is Hashing, what's a bucket in hashing?
4. authentication in Web Servies
5. Get Nth employee salary in Oracle.
6. Explain all the guarantees about the use of volatile keyword in the Java language from version 1.5
7. Sort a array in such a way that the duplicates are also in
for ex
2 arrays
0 1 3 5
1 2 3 4
output should be
01123345
9. spring we use Initialization Bean interface
10, Discuss method overriding in Java?
11. 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?
Solution discussed here
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?
Design Problems
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.
Print the top ten ranked distinct words.
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?
Explain Types of db indexes.
What is LRU Cache
What methods you override in java.lang.Object class
What is Hashing how to implement custom hashing?
1. Variable used in Threading (say t1 works on Map, t2 should work after t1 finishes)
2. Circular Linked List. how to check if a list is circular?
3. What is Hashing, what's a bucket in hashing?
4. authentication in Web Servies
5. Get Nth employee salary in Oracle.
6. Explain all the guarantees about the use of volatile keyword in the Java language from version 1.5
7. Sort a array in such a way that the duplicates are also in
for ex
2 arrays
0 1 3 5
1 2 3 4
output should be
01123345
9. spring we use Initialization Bean interface
10, Discuss method overriding in Java?
11. 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?
Solution discussed here
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?
Design Problems
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.
Print the top ten ranked distinct words.
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?
Explain Types of db indexes.
What is LRU Cache
What methods you override in java.lang.Object class
What is Hashing how to implement custom hashing?
Comments
Post a Comment