The year 2020 has been a roller coaster ride for the entire world economy. We have witnessed something never seen before. Covid-19 has impacted every business directly or indirectly. The travel industry was hit the most in light of travel restrictions and a general fear of contracting the disease. According to the UNWTO estimates,...
Java/JVM, Software development
The equals Method return True if the two arrays are equal to one another if both arrays contain equal number of elements and corresponding elements are also equal. If both arrays are null then they are also considered as equal. The equals method is used with Hashcode method to find the bucket of arrays. Two arrays are equal only if...
Java/JVM, Software development
We all know Java comments are not visible to compiler and are not executable. But here we will see how a comment can be executed. To execute any comment we need to append a unicode as prefix to that comment and thats it. Now when you will run the code then this comment line will be executed. [java] public class CommentTest { public...
Java/JVM, Software development
Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn i.e. x's power n. To solve this problem anyone can...
Java/JVM, Software development
SiteMesh is a very simple, lightweight & flexible Templating Solution framework for Java Web applications. SiteMesh can be used in lot more ways if we combine it with Spring boot framework. Configuring the SiteMesh with Spring Boot is little bit tricky but not complex, as we need to create a custom filter and then inject it into...