Javascript closure Example
In this post, we will see tutorial on javascript clusure Closure : A closure in JavaScript is a function that has access to variables in its outer scope, even after…
In this post, we will see tutorial on javascript clusure Closure : A closure in JavaScript is a function that has access to variables in its outer scope, even after…
In this tutorial, we will learn hoisting in javascript with example Hositing: Hoisting is a behavior in JavaScript where variables and function declarations are moved to the top of their…
In this tutorial, we will see this keyword in javascript The this keyword in JavaScript refers to the object that the current function is a method of. It provides a…
In this tutorial, we will see concerting String[] to InputStream in the following ways:
We can convert Java String to Input with below approaches: Example1: String str = "Hello World!"; InputStream inputStream = new ByteArrayInputStream(str.getBytes()); Example 2 with UTF8: javaCopy codeString str = "Hello…
In this post, we will learn various ways of converting input stream to String In this example, we will see that InputStream will be converted to String using java8 streams…
In this post, we will see how to convert list of Users to employees in java8 way. In the following examples, we can use the below approaches: Using conversion function…
In this post, we will see questions asked on String during java interview 1. Explain String pool in java? String Pool is java string literals pool that JVM maintains a…
Lambda expressions are a concise way of representing anonymous functions in Java 8 and later. A lambda is an anonymous function They can be used to pass behavior as a…
In this post, we will learn on java8 method referenced exampls: Method references in Java 8 are compact, easy-to-read lambda expressions which will refer to an existing method. They can…