State the number of bytes occupied by char and int data types.
17 Likes
char occupies 2 bytes and int occupies 4 bytes.
Answered By
8 Likes
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);:
Which of the following is a valid java keyword?