Hello,
Please Prasad, use meaningful subject lines. Please check
MeaningfulSubjectLine
It is because it is an Object and anything is an Object in
java. Be it two dimensional or one dimensional,
it doesn't matter. It can be assigned to Object. If you amend your code to something like this
It will give you a compile time error.
Hope this helps,