Computer Applications
The number of bits occupied by the value ‘a’ are:
- 1 bit
- 2 bits
- 4 bits
- 16 bits
Values & Data Types Java
ICSE 2023
18 Likes
Answer
16 bits
Reason — A char data type occupies 2 bytes in the memory.
1 byte = 8 bits
2 bytes = 8 * 2 = 16 bits
Answered By
9 Likes
Related Questions
A method which does not modify the value of variables is termed as:
- Impure method
- Pure method
- Primitive method
- User defined method
When an object of a Wrapper class is converted to its corresponding primitive data type, it is called as …………… .
- Boxing
- Explicit type conversion
- Unboxing
- Implicit type conversion
Method which is a part of a class rather than an instance of the class is termed as:
- Static method
- Non static method
- Wrapper class
- String method
Write the Java expression for (a + b)x.