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
7
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
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
Social Sciences,
8 months ago
India Languages,
8 months ago
Art,
8 months ago
Math,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago