Day 10: Function is a functional interface that takes an input and gives an output. so functions can be chained.
Function is a functional interface that takes an input and gives an output. so functions can be chained.
Function is a functional interface that takes an input and gives an output. so functions can be chained.
Functional interface
I always liked string interpolation in JS. Now i found out about Javas MessageFormat’s format method which lets us in its way use string interpolation.
Today i found out that string declared with "" are placed in string constant pool while with new keyword its in heap. String.intern() return string if defined in string pool otherwise creates the string and then returns it.
Today I got to know that for loop is faster than foreach loop for a large amount of elements. after checking I found out that is on average 2 times faster for the below program in my machine.