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

What is Effectively Final variable of Java 8

Java 8 introduced a new term : effectively final variables. A variable which is not declared as final but whose value is never changed after initialization is effectively final. 12345for (int i = 0; i &lt; 10; i++) { new Thread(() -&gt; { System.out.println("i = " + i); // Does not compile! }).start(); } The above code does not […]

Continue Reading
1 2 3 5