Category: Short Writeups
-
JVM Architecture & Garbage Collection
JVM Architecture class loader in detail java memory areas runtime data areas – 2 covered out of 5 runtime data areas rest 3 Execution engine Garbage collection basic compartments in heap Eden space starts filling with object and ones in dark are marked for garbage collection Post that the other objects in green are moved…
-
Java Memory Management
All local variables/primitives go on the stack. Every thread has its own stack. Heap Heap stores all Objects. So String, Integer etc are created on this. The references to these are given to the Stack. JAVA is Pass by Value. Every primitive variable created on stack is separate for each function and has a different…
-
Java 8
Lambda Expressions They are nameless functions. Use To enable functional programming Write concise and readable code Use API effectively Parallel programming How to write them No return type No modifier No name Public String lengthOfString(String s) { return s.length; } (s) -> {s.length;} s -> s.length; Functional Interface An Interface that contains just one abstract…
-
Angular 2+
Html – JS Dev vs Angular Dev Earlier we would keep these separate. We will manage the DOM via JS. So on click of a button, we will invoke a particular JS –which might validate form inputs. Angular works in component based approach, we think in terms of components. So page is divided into components…