State the total size in bytes, of the arrays a[4] of char data type and p[4] of float data type.
36 Likes
Size of char a[4] is 4 × 2 = 8 Bytes.Size of float p[4] is 4 × 4 = 16 Bytes.
Answered By
19 Likes
What is the output of the Java code given below?
String color[] = {"Blue", "Red", "Violet"}; System.out.println(color[2].length());