From the layman to professional

wtorek, 27 listopada 2012

Thread interview questions: 

  1. Why wait, notify and notifyAll is defined in Object Class and not on Thread class in Java
  2. How to implement Thread in Java
  3. What do you know about Concurrent interface in java.util package
  4. Checked and unchecked exceptions
  5. Difference between wait, sleep, yield in Java
  6. Why wait and notify requires to be called from synchronized blocks
  7. What is race condition
  8. Can you write Produce Consument problem
  9. Can you write Blocking Queue example
  10. What is deadlock and how to avoid it
  11. Difference between Thread and Runnable in Java
  12. volatile keyword in Java
  13. What is double check locking pattern
  14. The Executor framework example
Autor: Unknown o 11:21 Brak komentarzy:
Wyślij pocztą e-mailWrzuć na blogaUdostępnij w XUdostępnij w usłudze FacebookUdostępnij w serwisie Pinterest

środa, 21 listopada 2012

Collection interview question:

1. How TreeMap works in Java
       a) How to use Comparator and Comparable in Java
2. How HashMap works in Java
       a) How to override hashCode method
       b) How to override equals method 
             - Best practices to avoid NPE
3. How HashSet works in Java
4. Difference between HashMap and HashTable
5. Difference between List and Set in Java
6. What is Iterator and ListIterator
7. What is the difference between fail-fast and fail-safe Iterator
8. Different between synchronized collection and Concurrent collection
9. Difference between Iterator and Enumeration
10. How do you sort objects on collection
11. Difference between ArrayList and Vector (How ArrayList works)
12. Difference between HashSet and HashMap
Autor: Unknown o 10:24 Brak komentarzy:
Wyślij pocztą e-mailWrzuć na blogaUdostępnij w XUdostępnij w usłudze FacebookUdostępnij w serwisie Pinterest

sobota, 10 listopada 2012

Some interesting interview questions

1. Here I found many interesting interview questions about Spring.
2. Tricky question: "Why multiple inheritance is not supported in Java"
3. How HashMap works in Java
4. Why String is immutable or final in Java
5. What is String Pool in Java
6. Why character array is better than String for storing password in Java
7. How substring method works in Java
8. How Thread.join() method works in Java
9. What is deadlock and how to avoid it in Java
10. How volatile in Java works
11. What is Race Condition in Java
12. Understanding a Java thread dump
13. Difference between start and run method in Thread
14. Design pattern interview questions
15. Some information about Java Heap Space
16. Short brief about WeakHashmap
17. How Garbage Collection works in Java
18. Difference between start and run method in Thread
Autor: Unknown o 09:10 Brak komentarzy:
Wyślij pocztą e-mailWrzuć na blogaUdostępnij w XUdostępnij w usłudze FacebookUdostępnij w serwisie Pinterest
Nowsze posty Starsze posty Strona główna
Subskrybuj: Posty (Atom)

Archiwum bloga

  • ►  2017 (2)
    • ►  maja (1)
    • ►  kwietnia (1)
  • ►  2016 (3)
    • ►  października (3)
  • ►  2015 (2)
    • ►  marca (2)
  • ►  2013 (2)
    • ►  stycznia (2)
  • ▼  2012 (9)
    • ►  grudnia (1)
    • ▼  listopada (3)
      • Thread interview questions:  Why wait, notify a...
      • Collection interview question: 1. How TreeMap w...
      • Some interesting interview questions
    • ►  października (3)
    • ►  września (2)

O mnie

Unknown
Wyświetl mój pełny profil
Motyw Okno obrazu. Obsługiwane przez usługę Blogger.