What improvement has java-8 made that performance of HashMap.get() function call is fast by 20% in Java-8.
While comparing a variable with a constant (literal) in C/C++ language, which of the two ways of comparison should we use ?
if( x == 2 ) ... if( ptr == NULL ) ...
if( 2 == x ) ... if( NULL == ptr ) ...
In the first comparison we are writing variable on the Left side of == and literal (constant) on right side. whereas, in the second form we are writing the literal (2, NULL, etc.) on the left side of ==.
The Open Close Principle in Programming says“Software entities like Classes, Functions, Modules should be open for extension, but closed for modification.”
It encourages programmers to write code in such a way that new functionality can be added without changing the existing code.
i.e If we are writing a class, then we may later, extend the class and create more base classes to it (which will enhance the functionality further), But, we should never be forced to change the code inside the class, just because some more features need to be added. Same goes for functions.
Meaning of word ritambhara is a combination of spiritualism, enlightenment and knowledge. ritambhara is a state you will be in when you are filled with knowledge & enlightenment.
We want you to in that state so far as you knowledge of computer science is concerned.