zeroTutorials

Java, Server, Database Tutorials

Have a Question?

If you have any question you can ask below or enter what you are looking for!

Month: October 2022

Check JDK and JRE versions and installation locations

1. Difference between JDK and JRE : The JRE is the Java Runtime Environment. It is a collection of everything needed to run a compiled Java program, including the Java Virtual Machine (JVM), Java class library, java command, and other frameworks. However, it cannot be used to create new programs. . . . Read more

Compare strings in Java

In order to compare the values of two strings, we use the equals() method or Objects.equals() method. Objects.equals() checks for null before calling equals() method. While the == operator is used to compare the references of two string objects. Output :