Dave
nss
nss
From any array type SC[] to any array type TC[], provided that SC and TC are reference types and there is a narrowing conversion from SC to TC
SCJP2. Please Indent your code using UBB Code
Originally posted by Neha Sawant:
Hi,
This line is still not very clear,could you give me some eg. of this type.
From any array type SC[] to any array type TC[], provided that SC and TC are reference types and there is a narrowing conversion from SC to TC
Regards
neha
nss
Muhammad Hussain<br />Sun Certified Java Programer (SCJP2)<br />Sun Certified Web Component Devloper SCWCD
nss
Originally posted by Neha Sawant:
Ragu,
I am getting the same answers.
String s[]=new String[]{"hello","Hi","How","ARE","YOU"};
String m="Amit";
Object l[]=m; //does not compile
Object o[]=s; // compiles
Object r=m; //compiles
nss
SCJP2. Please Indent your code using UBB Code
Don't get me started about those stupid light bulbs. |