String Equals And Content Equals Difference In Java

preview_player
Показать описание
Difference between String Equals And String ContentEquals have been explained with demo in this video.
**Difference Between Equals and ContentEquals ******

String Equals --Compare values of two strings
String contentEquals --Compares values of String family types with string
that means Stringbuilder with String ,StringBuffer with String

/* package codechef; // don't place package name! */

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
{
// your code goes here

String str="Hello World";
StringBuilder std = new StringBuilder(str);
StringBuffer sb= new StringBuffer(str);


}
}
Рекомендации по теме
Комментарии
Автор

thank you, it is good content. I am russian, i write how i can😀

volselongames