Category:
Test your core java basics by answering these question before you head for java interview .
- What is the difference between final, finally, and finalize()?
- What is the difference between a HashMap and a Hashtable?
- What is Hash Collision? How is it being resolved internally?
- What is the difference between checked and unchecked (e.g: RuntimeException/Error) Exceptions? Give some examples.
- Names some of the primary structures in the Collections API and what are their semantics, i.e. when do you use one vs. another?
- Between an ArrayList and a LinkedList, when do you use one over another?
- What is innerClass and anonymous class in java? What is the purpose of anonymous class?
- · Difference between runnable and callable?
- · What is intrinsic and re-entrant lock? When it''s useful?
- What is piped stream and concept of NIO - which API did you use? Why NIO is better compare to IO?
- What is Future class?
- · How do you write a daemon thread in Java?
- Difficult
- Explain Java class loaders. Explain dynamic class loading.
- How does Java allocate stack and heap memory?
- What do you know about the Java garbage collector?
- What does old generation vs. new generation mean and why is it useful?
- What is AtomicInteger? How is it implemented?
- ConsurrentHAshMap - why it gives better performance in multi threaded apps?
- · What is consistent hashing?
Comments (0)
Post a Comment