Final Interview
StringBuffer, StringBuilder, String
Download 101.77 Kb. Pdf ko'rish
|
Final Interview
- Bu sahifa navigatsiya:
- 16. Equals/hashCode contract
- 17. Garbage collector
- 18. Multithreading in Java (base model)
15. StringBuffer, StringBuilder, String
1. What is String in java? 2. Ways to create a string. 3. Benefits of strings are immutable? 4. String constant pool. 5. StringBuilder important details. 6. StringBuilder vs String. 7. StringBuffer important details.ll 8. StringBuilder vs StringBuffer. 9. Best practice to choose between String, StringBuilder and StringBuffer. 10. What's the right way to compare two strings in Java? (AK) 11. What's the right way to perform a case-insensitive comparison of two strings in Java? (AK) 16. Equals/hashCode contract 1. Default behavior of equals and hashCode methods. 2. HashCode method overriding rules. 3. Equals method overriding rules. 4. A contract between Equals and hashCode methods. 5. Why are methods connected to each other? Describe the result of scenarios when one of them is overridden but the other not: side effects. 6. Difference between ‘==’ and equals. 7. Collections and equals/hashCode dependencies, best practice. 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 101.77 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling