Which of the following statements are wrong?
1) Integer a[]=new Integer[10];
2)Object b[]=new Integer[10];
3)Object c=new Integer[10];
Just think it.Don't try it in your java editor.
Actually all statements are right.Specially I want to mention
about third statement .It is valid because Object class is a base
class for Array Class too.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment