answersLogoWhite

0


Best Answer

16 bits. Java char values (and Java String values) use Unicode.

User Avatar

Gail Baumbach

Lvl 10
2y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many bits does a Java char contain?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many bits are in a char short and long on the Motorola 68000 microprocessor?

8, 16, 32


How many characters in 32bits?

If the characters are 8 bits then you have 4 for them in 32 bits. ASCII is an 7 bit character set but in most programming languages a char is 8 bits.


How many bits contain a byte?

1 byte = 8 bits


Integers need how many bits to stored in C plus plus?

It depends on the type of integer (such as long, short, int and char) and the specific implementation of C++. The only guarantee is that a char must occupy one byte (sizeof(char)==1). An int is typically 32-bits (4 bytes), but only sizeof(int) can tell you for sure.


How many keywords in java 1.7?

abstract assert boolean break case catch char class const continue default


How many bytes and how many bits does the word duck contain?

If you are using the ASCII system, the word "duck", as it has four letters, contains 4 bytes, or 32 bits.


How many types are there in java?

The two basic data types in Java are primitives and objects. Primitives: byte, char, short, int, long, float, double, boolean Objects: Everything else.


How many bytes a char pointer takes?

In 32 bit address space it will most likely be 4 bytes, since 8 bits is a byte and 32 bits / 8 bits = 4. In 64 bit address space it should be 8 bytes (64 bits / 8 bits = 8). It is architecture dependent so use the sizeof() function.


How many bits are required to represent double data type in memory?

It differs slightly depending on what platform your computer uses or what language you are using. for the Java programming language, which is platform independent, it is 64-bits.


How many bits does a 30-pin SIMM module contain?

normally 8 to 16 bit..


How many values can store a variable at a time?

Yes. For example: char c= 'A'; ... c= 'B';


Are webpages that contain hypertext markup language commands typically written in Java?

No, they usually are written in plain text. HTML is a formatting language that explains to a browser how to display content. Java is a programming language that controls the computer. Many times a website will contain JavaScript, which is a completely different language that Java.