+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...
1. Compiler - takes the entire programming code written in high language and translates the whole of it into machine code at once. After this process the an executable file will be ready to run. The translation takes some times to be done, but after that execution is so fast. 2. Interpreter - takes each single instructions of the code translates it and then executes it on its own. The translation step is before the program runs is fast, but execution is slow. JDK = JRE + development tools JRE = JVM + library class JDK -> Java Development Kit. A kit which provides the environment to develop and execute (run) Java program. JRE -> Java Runtime Environment. Provides environment to only run. JVM -> Java Virtual Machine f * Compiled: Fortran, C, C++, Pascal, Haskell, Rust, Go * Interpreted: JavaScript, PHP, Python, Ruby Java both compiled and interpreted language. Terminalda : javac Main.java yazdiqda, source fayli(.java) bytecode(.class) faylina cevirir. Terminalda: java Main (bu z...
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...
Комментарии
Отправить комментарий