Computer Science, asked by kokokokokooko, 1 year ago

What is data type to represent a character in Java ?

Define string.


OMMSINGH: A Java string data type is a sequence, or string of connected characters (Java char data type objects). The String is also a class, meaning it has its own methods. These methods include checking for string length, transforming to upper or lower case, and replacing values in strings with other values.

Answers

Answered by Thelunaticgirl
7
<marquee behavior=move bgcolor= Pink > <h1> ☺️☺️HOlla mate✌️✌️ </h1></marquee>

The data type to represent a character in java is a char.

A string is a set of two or more than two characters, a set of charactersss with the literals or a sentence written within double quotes, For example :+ Happy new year 2019 etc.

Thanks!!
Answered by Anonymous
3

heya...

here is your answer...

The data type to represent a character in java is char.

String:Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects.

The Java platform provides the String class to create and manipulate strings.

IT MAY HELP YOU..

Similar questions