Java core class (Type, File)
Download 39.72 Kb.
|
interview questions
- Bu sahifa navigatsiya:
- 18. Multithreading in Java (base model)
17. Garbage collector
1. What is GC? 2. Ways to interact with Garbage Collector for a developer. 3. Strong, Soft, Weak, Phantom references. When and how to use, best practice. 4. Finalize method known issues. 5. Finalize method vs Phantom reference. 6. Java memory model (java 1.8). 7. Different regions in JVM Memory linked to GC. 8. Minor, Major, Full GC. 9. Serial, Parallel, Cms, G1 algorithms comparison. 10. Epsilon GC.(YH) 11. Tools to analyze GC logs. 18. Multithreading in Java (base model) 1. What is a process in term of Java? 2. What is a thread and how to implement it? 3. Resources is assigned to a thread. 4. Interaction of threads with a single method (static, none static), variable (local, global). Understanding of memory model in terms of a thread. 5. Life cycle of a thread. 6. Demon and none Demon threads, comparison. 7. Runnable vs Thread for running a new thread. Best practice. 8. Threads Scheduler: what is it, how it manages threads. 9. Monitor in Java. Monitor usage best practice. 10. How Thread Scheduler manages thread conditions. 11. Thread scheduler, threads and monitor interaction. 12.: overview, comparison, best practice to use. 13. Methods of Object class to manage threads: overview, how to use. 14. Why methods to manage threads in two different classes? 15. Sleep vs wait. 16. What is a volatile variable in Java? How does it work? 17. How synchronization works in Java. Best practice. 18. Synchronize and volatile difference. 19. Atomic operations. 20. Range of thread safe types/design patterns (from immutable to not thread safe); 21. What is deadlock? (AK) 21.1. What strategies do you know for preventing deadlock? (AK) 22. How many ways to create a thread do you know? (Thread, Runnable, Callable 23. What is the Future class used for? (AK) 24. What are the advantages of Callable over Runnable? (AK) 25. What thread priorities are there? (AK) 26. Can you stop a thread by reducing its priority to 0? (AK) Download 39.72 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling