In this article you will see, how to create UUID in Java.
UUID, a universally unique identifier is a 128-bit number used to identify information in computer systems.
UUID is made of hex digits along with 4 hyphen (“-”) symbols. The length of a UUID is 36 characters.
There are 5 types of UUID but mostly version 4 i.e. Randomly Generated UUID is used.
We are going to create the version 4 UUID here.
Creating a Randomly Generated UUID (version 4) is really easy in Java.
UUID Class is present in
java.util package. And it has the static method
randomUUID() which returns the randomly generated UUID. …
GIT is one of the most important parts of the developer’s day to day work. So learning GIT is a must for a newbie developer. In this article, you are going to learn the 8 most important basic GIT commands.
Below, I have listed down all the 8 commands and then, we will have a look at them one by one.
git init command initializes brand new GIT repository (locally) and begins tracking the existing directory.
When you hit the
git init command, git adds a sub-folder withing an existing directory that manages all required files for version controlling. …
In this article, you are going to learn how to compare strings. What problem occurs when you compare string using
equals to (
String is a special Class in Java. We use String regularly in Java programs, so comparing two string is a common practice in Java. In this article I tried to answer the most common questions about the string, 'How do I compare strings in Java?'
Comparing strings is very helpful the processes like authentication, sorting, reference matching, etc.
I have listed 3 ways to compare strings in Java.
equals()method ( comparing the content)
==operator (comparing the object…