give: byte[] a1=new byte[]{1,2}; byte[] a2=new byte[]{3,4}; a1=a2; it cann't compile! Why? In fact any reference varible cann't be assigned by another same type reference on my computer!
It compiles fine on my machine :roll: That code is perfectly legal. What is the compilation error? [ August 21, 2002: Message edited by: Valentin Crettaz ]
the compile error message is: ******************************* Test147.java:34: <identifier> expected a1=a2; ^ Test147.java:34: cannot resolve symbol symbol : class a1 location: class Test147 a1=a2; ^ 2 errors **********************************