JAVA Programming :: Exception Handling - Discussion
Home > JAVA Programming > Exception Handling > MCQs Questions Discussion
5 / 4
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 { }
Anull
BtheDogs
CCompilation fails
DAn exception is thrown at runtime
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!