Relation between Serializable interface and arrays
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abhay_Shukla
Posted On:   Monday, February 3, 2003 09:09 PM


Relation between Serializable interface and arrays


			
import java.io.Serializable ;


public class A {
public static void main(String arg[]) {
Serializable s ;
int arr[] = {1,2,3};
s = arr ;
System.out.println(s);
}


}




Why does this code compiles and executes successfuly while the same code gives compile time error with any other java interfaces ?

About | Sitemap | Contact