Revature Interview Question

What is a string? Explain and give an example.

Interview Answers

Anonymous

Oct 2, 2021

Widely used in Java programming, a string is a sequence of characters. Strings are treated as objects in Java. The Java platform provides the string class to create and manipulate strings.

1

Anonymous

Dec 10, 2020

A string is a data type, such as an integer and floating point unit, but is used to represent text rather than numbers. For example, the word "hamburger" and the phrase "I ate 3 hamburgers" are both strings. ... Even "12345" could be considered a string

3