SushantraiData Types which are reference types in JavaNon Primitive data types are known as reference types. It contains the address (reference) of dynaically created objects. These are also…Jan 22, 2023Jan 22, 2023
SushantraiMethods which are present in String, but not in StringBuffer or StringBuilderString concat(): The concat method is given in String class but not in StringBuffer or StringBuilder as they both have append() method…Jan 22, 2023Jan 22, 2023
SushantraiString and its Methods in JavaA string is a class in java which can store a sequence of character values. It is initialized in majorly two ways 1. String s = “abcd”;Jan 22, 2023Jan 22, 2023