Page 1 of 1

About Question enthuware.ocpjp.i.v11.2.1124 :

Posted: Sun Nov 17, 2019 8:47 am
by girishankaran

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()); 
    } 
}

Re: About Question enthuware.ocpjp.i.v11.2.1124 :

Posted: Sun Nov 17, 2019 8:52 am
by admin
Not sure what is your question.