What is string in java?

DWQA QuestionsCategory: QuestionsWhat is string in java?
Editor Staff asked 3 weeks ago

What is string in java?

1 Answers
Editor Staff answered 3 weeks ago

String is a sequence of characters, for e.g. “Hello” is a string of 5 characters. In java, string is an immutable object which means it is constant and cannot be changed once it has been created.