Home » Java Programming » Language Fundamentals

What will be the output of the program? public class TestDogs { public static void main(String [] args) { Dog [][] theDogs = new Dog[3][]; System.out.println(theDogs[2][0].toString()); } } class Dog { }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!