Computer Applications
The array char arr[8] occupies :
- 32
- 8
- 16
- 24
Java Arrays
5 Likes
Answer
16
Reason — char datatype requires 2 bytes of memory. 8 char type elements will require 2 x 8 = 16 bytes of memory.
Answered By
2 Likes
Related Questions
Method that converts a character to uppercase is
- toUpper()
- ToUpperCase()
- TOUPPERCASE()
- toUpperCase(char)
Give the output of the following code
System.out.println("Good".concat("Day"));
- GoodDay
- Good Day
- Goodday
- goodDay
This access specifier achieves the lowest level of accessibility.
- Public
- Protected
- Private
- Default
Assertion (A) Line comment is used for a single line of comment.
Reason (R) A line comment starts with forward slash and asterisk(/*).- Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
- Assertion (A) is true and Reason (R) is false.
- Assertion (A) is false and Reason (R) is true.