Let us discuss some of the important questions/topics to be prepared for JAVA technical interviews.
1. Difference btw interface and abstract class
2. Collections - Arraylists, HashMap, TreeSet, HashSet, LinkedList
3. Design patterns - Factory, Singleton, Observer, Facade
4. Function over riding and overloading difference. Run time binding.
5. How to traverse through a collection using iterators. What is the difference between using iterators or using "for each" ().
6. In a map having Key, Value pairs, how to remove all odd entries (Or how to remove all keys from this map?)
---------------------------------------
Implement a high performance cache which allows multiple readers, but single writer to keep the integrity. How will you implement it?
Lock provide two separate lock for reading and writing and hence we can make use of it.
The major advantage of lock interfaces on multi-threaded and concurrent programming is they provide two separate lock for reading and writing which enables you to write high performance data structure like ConcurrentHashMap and conditional blocking.
Read more(This site seems to be really good): http://javarevisited.blogspot.com/2011/07/java-multi-threading-interview.html#ixzz29SEjkpq4
6. In a map having Key, Value pairs, how to remove all odd entries (Or how to remove all keys from this map?)
---------------------------------------
Implement a high performance cache which allows multiple readers, but single writer to keep the integrity. How will you implement it?
Lock provide two separate lock for reading and writing and hence we can make use of it.
The major advantage of lock interfaces on multi-threaded and concurrent programming is they provide two separate lock for reading and writing which enables you to write high performance data structure like ConcurrentHashMap and conditional blocking.
Read more(This site seems to be really good): http://javarevisited.blogspot.com/2011/07/java-multi-threading-interview.html#ixzz29SEjkpq4
No comments:
Post a Comment