+1. JVM memory areas. Thread safe memory areas, Garbage collector working principle, Java reference types +2. SOLID +3. Collection API: How does HashMap work under the hood, hash collision, Concurrent HashMap +4. Equals and HashCode contract -5. Thread, Volatile vs Synchronized, atomic variables(CAS-compare and swap). How to prevent deadlock. Deadlock vs livelock. Reentrant lock. +6. Error vs Exception +7. Immutable class(how to make object properties immutable, immutable collections) +8. DB index type(clustered, non clustered, composite) +9. DB normalization and denormalization +10. RDBMS vs non RDBMS +11. ACID vs BASE. Lock mechanism +12. Hash eviction policy(TTL, LRU, FIFO, LFU, MRU, random replacement, ARC). Problem: we have 2GB memory, how to store 15GB data in this cache +13. entity lifecycle +14. dirty check, flush +15. cascade types +16. n+1 problem (entity graph, join fetch) +17. lazy initialization exception 18. idempotency, safe in rest methods +19. IOC, DI, Proxy +20. AOP(c...
Compilation — source kodun mashinin basha dusheceyi dile cevrilmesidir. It is the process the computer takes to convert a high-level programming language into a machine language that the computer can understand. Source code — — ->compiling — —->Binary code (0 ; 1) Compiler — programi tam cevirir sonra icra edir. Compiler xetalari cevirenden sonra deyir. Interpreter — programi setir setir oxuyur ve icra edir. Interpreter xetalari ilk sehv tapildiqda deyirl. Compiled languages : C, C++, Go, Fortran, Pascal. Language → (Compiling) → Machine code → Ready to Run! Interpreted languages: Python, PHP, Ruby, JavaScript. Language → Ready to Run! → (Interpreting) → Virtual Machine → Machine code. Java hem compiler hem de interpreter dildir. MyProgram.java → (Compiler) → MyProgram.class → (JVM) → MyProgram(01000110101010) Java Compile-time platfomadan asili deyil, Bytecode platformadan asili deyil lakin JVM-den asilidir, Run-time da ise platformadan asilidir. JDK((JRE(JVM))). JDK — Jav...
1. Process - emeliyyat sistemi terefinden ishe salinan, oz ayrica yaddash sahesine malik olan programin icra nusxesidir. Mes biz kompumuzda muxtelif programlar acanda Paint, Excel ve s. bunlar ferqli proseslerdir. OS her bir prosese ferqli registerler, stack memory, heap memory assign edir. Restoran misali: Restoran = process Bina = yaddash (RAM) Ishciler = thread Yeni process ishe salinmish bir programdir. * Her proses oz yaddashinda ishleyir, bashqasina toxuna bilmez. * OS her prosese unikal ID verir. * Yaratmaq / silmek bahalidir. * Biri crash olsa, digerine tesir etmir. Bir prosesin icinde coxlu thread ola biler. Amma bir thread yalniz bir prosese aid ola biler. Java kodu bashlayanda JVM ozu de bir nece thread yaradir: * main thread - bizim kodumuz * GC thread - Garbage Collector * Finalizer thread * Signal Dispatcher thread 2. Thread - process icinde ishleyen ayrica ish axinidir. Kodun setir setir icra olundugu yoldur. Restoran - process Ashpaz 1...
Комментарии
Отправить комментарий