About Question enthuware.ocpjp.i.v11.2.1124 :
Posted: Sun Nov 17, 2019 8:47 am
Code: Select all
public class Test {
public static void main(String[] args)
{
// Here array is the array name of int type
int[] array = new int[4];
System.out.println("The size of the array is " + array.length);
// Here str is a string object
String str = "GeeksforGeeks";
System.out.println("The size of the String is " + str.length());
}
}