In this video we will see how to compare two strings and concatenate strings in java.
Comparing two Strings:
Strings are compared with equals method.
Str1.equals(Str2);
== is used to compare others.
For example, integer values are compared with == method.
If you use == to compare strings, it compares the reference points but not the actual values.
Concatenating two strings:
For concatenating two strings we use + operator.
On this page of the site you can watch the video online 21B. Java Basics for Selenium - Java Strings - Comparing and Concatenating two strings with a duration of hours minute second in good quality, which was uploaded by the user subbus tech 21 March 2019, share the link with friends and acquaintances, this video has already been watched 60 times on youtube and it was liked by 0 viewers. Enjoy your viewing!