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.
In questa pagina del sito puoi guardare il video online 21B. Java Basics for Selenium - Java Strings - Comparing and Concatenating two strings della durata di ore minuti seconda in buona qualità , che l'utente ha caricato subbus tech 21 marzo 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 60 volte e gli è piaciuto 0 spettatori. Buona visione!