Multi-Threading : Local Variable ThreadSafety

Local Variable are thread safe by nature.Each thread  have its own execution context/stack which is used to store local variables. When ever two threads are running both thread will have own stack and no thread never shares its stack. Local variables defined in method will be allocated in Stack. Once method execution is complete, stack […]

Continue Reading

Angular – Important Interview Questions

Explain the life cycle hooks of Angular 2 application What are the advantages of using Angular 2 over Angular 1? What is the anatomy of angular 2 application? Can we write both Angular 1 and Angular 2 codes in a single project? Differentiate between Angular 2 Component Constructor vs. OnInit event? What is Angular 2 […]

Continue Reading

Type Erasure in Java

Type Erasure is very important concept of Java Generics. I have seen many times in interview candidates rate themselves 8 out 10, but they have not heard about Type Erasure. Even Senior lever developers can not answer about the Type Erasure . Type Erasure can be explained as the process of enforcing type constraint only […]

Continue Reading

Java 10 features

Features 286: Local-Variable Type Inference var list = new ArrayList<String>();  // infers ArrayList<String> var stream = list.stream();          // infers Stream<String> A local-variable type inference to enhance the language to extend type inference to local variables. The intent is to reduce the “ceremony” associated with coding while maintaining a commitment to static type safety. 296: Consolidate […]

Continue Reading

Most Important JavaScript Interview Questions

Based on couple of Interviews,Here are the list of most important Question of JavaScript – What are JavaScript Data Types? Ans :  JavaScript provides different data types to hold different types of values. There are two types of data types in JavaScript.                                  […]

Continue Reading
1 2 3 5