Computer Applications
State the number of bytes occupied by char and int data types.
Values & Data Types Java
ICSE 2017
17 Likes
Answer
char occupies 2 bytes and int occupies 4 bytes.
Answered By
8 Likes
Related Questions
The default value of a boolean variable is:
- False
- 0
- false
- True
Consider the array given below:
char ch[] = {'A','E','I','O', 'U'};Write the output of the following statements:
System.out.println(ch[0]*2);:- 65
- 130
- 'A'
- 0
The number of bytes occupied by a character array of four rows and three columns are:
- 12
- 24
- 96
- 48
There are 128 set of different characters used in a Java program.