answersLogoWhite

0

What is character in java?

Updated: 8/9/2023
User Avatar

Wiki User

14y ago

Best Answer

A character, or char, is single letter such as 'a'.

It's a primitive data type, like int and long, and the letter is always put inside single quotes ' '.

The class String, which is used for storing sentences, is made up of a whole bunch of char's put together.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

Define programming if ur talking about a game or something a character is the player controlled avatar representing themselves if ur talking about code programming, a character is anything you type e.g the letter A is a character

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

A character is a single symbol - letter, digit, or other special symbol.

In Java, characters (and Strings, as groups of characters) are Unicode characters; unlike some older systems, that only allow 256 different symbols because the use a single-byte representation, this system allows over a million different symbols.

A character is a single symbol - letter, digit, or other special symbol.

In Java, characters (and Strings, as groups of characters) are Unicode characters; unlike some older systems, that only allow 256 different symbols because the use a single-byte representation, this system allows over a million different symbols.

A character is a single symbol - letter, digit, or other special symbol.

In Java, characters (and Strings, as groups of characters) are Unicode characters; unlike some older systems, that only allow 256 different symbols because the use a single-byte representation, this system allows over a million different symbols.

A character is a single symbol - letter, digit, or other special symbol.

In Java, characters (and Strings, as groups of characters) are Unicode characters; unlike some older systems, that only allow 256 different symbols because the use a single-byte representation, this system allows over a million different symbols.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

it is just the symbols of that particular programming language.They have separated mathematical symbols as operators in all the languages.

for example:In c language ,a-z and A-Z and 0-9 are characters if used singly,when different characters are used to form group of characters then called as an identifier or a keyword.

remember 0-9 characters are not used in keywords.keywords are predefined.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

A character is a single symbol - letter, digit, or other special symbol.

In Java, characters (and Strings, as groups of characters) are Unicode characters; unlike some older systems, that only allow 256 different symbols because the use a single-byte representation, this system allows over a million different symbols.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

A data-type; can have value like 'a', '9' or '#'.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is character in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the ' ' called in java?

' ' would be the character for a space in Java.


Can a character in java apply in JOptionPane?

no!!


What is java string?

array of character data type which is terminated by null character


Character use only one byte why Java use two byte for character?

The number of bytes used by a character varies from language to language. Java uses a 16-bit (two-byte) character so that it can represent many non-Latin characters in the Unicode character set.


Why does java use unicode?

Transform character s into numbers (binary)


How do you store a character in a variable?

In Java a primitive data type called 'Char' is used to store a single character of text.Char myChar = "a";


In java is A string the same thing as a char?

No.A char is a single Unicode character. It is stored as a primitive (i.e., non-object) data. A string can be considered as an array of chars - Java stores it as an object.No.A char is a single Unicode character. It is stored as a primitive (i.e., non-object) data. A string can be considered as an array of chars - Java stores it as an object.No.A char is a single Unicode character. It is stored as a primitive (i.e., non-object) data. A string can be considered as an array of chars - Java stores it as an object.No.A char is a single Unicode character. It is stored as a primitive (i.e., non-object) data. A string can be considered as an array of chars - Java stores it as an object.


What does it mean to have a string split in java?

To have a string split in Java means that a string array, containing substrings (can be delimited by elements of a specified string or Unicode character array), is returned.


What is the need of unicode in java?

The idea is to have a single character set that can represent ALL the languages of the World, without the need to change between different character encodings.


Why does a character in Java take twice as much space to store as a character in C?

Different languages use different size types for different reasons. In this case, the difference is between ASCII and Unicode. Java characters use 2-bytes to store a Unicode character so as to allow a wider variety of characters in strings, whereas C, at least by default, only uses 1 byte to store a character.


Does Character literals are stored as unicode characters?

Character literals in Java are stored as UTF-16 Unicode characters. Each character takes up 16 bits of memory, allowing for representation of a wide range of characters in the Unicode character set.


What is a string in java?

An object that stores an ordered set of characters (ie. "hello"). The String class represents character strings.