What is return type of TestNG Data Provider?

Data provider returns a two-dimensional JAVA object to the test method and the test method, will invoke M times in a M*N type of object array. For example, if the DataProvider returns an array of 2*3 objects, the corresponding test case will be invoked 2 times with 3 parameters each time.


   * @return Object[][] where first column contains 'author'
   * and second column contains 'Country'

    public Object[][] getData()
        return new Object[][]
            { "Ram", "India" },
            { "Sham", "UK" },
            { "Mohan", "USA" }