Java – Generate Unique ID

UUID is the fastest and easiest way to generate unique ID in Java.

Java – Get Tomcat Home Directory

Tomcat home directory or Catalina directory is stored at the Java System Property environment. If the Java web application is deployed into Tomcat web server, we can get the Tomcat directory with the following command-

Java – Detect Operating System