Java Full Stack Developer Interview Experience

Java Full Stack Developer Interview Experience (3–4 Years) Recently went through a round of interviews and wanted to share some important questions + crisp answers that were asked ✨️JavaScript 1. var vs let vs const - "var" → function scoped - "let" → block scoped, mutable - "const" → block scoped, immutable 2. Hoisting - Variables & functions are moved to top - "var" → undefined, "let/const" → TDZ 3. Closures Function + its lexical scope (remembers outer variables) Asked to write code on closure 4. Async / Event Loop Output Sync → Promise (microtask) → setTimeout (macrotask) ✨️Angular 5. Data Binding - "{{ }}" → interpolation - "[ ]" → property - "( )" → event - "[( )]" → two-way 6. Signals Reactive state → auto UI updates (no subscriptions) Asked to write code on signal to change signal value 7. Lifecycle Hooks Order OnChanges → OnInit → DoCheck → AfterView → OnDestroy 8. Parent ↔ Child Communication - Child → Parent → "@Output + EventEmitter" - Parent → Child → "@ViewChild" 9. Routing & Guards Route config + "CanActivate" for security 10. Lazy Loading Load modules only when needed → better performance 11. Global Loader (Best Practice) Use HTTP Interceptor + Loader Service ✨️ Spring Boot 12. Environment Config (Prod vs Non-Prod) Use Spring Profiles + Environment Variables 13. Default Scope Singleton (one instance per app) ✨️Java Core 14. Garbage Collection Removes unused objects automatically 15. Java 17 GC ZGC & Shenandoah (low latency), G1 default 16. synchronized vs volatile - "synchronized" → thread safety (locking) - "volatile" → visibility only 17. Async in Java "CompletableFuture" for non-blocking tasks ✨️ System Design / Tools 18. Kafka Distributed event streaming (Producer → Topic → Consumer) ✨️Database 19. Indexing Faster reads using B-tree 20. Disadvantages of Indexing Slow writes, extra storage 21. Write a code to to find pair from an array of given target 💬 Would love to hear what questions you faced recently! #Java #Angular #SpringBoot #FullStackDeveloper #InterviewPrep #SoftwareEngineer #Kafka #JavaScript #CareerGrowth #interviewexperience

To view or add a comment, sign in

Explore content categories