import java.io.Serializable;
public class MainClass {
public static void main(String args[]) {
String[] names = new String[10];
if (names instanceof Object[])
System.out.println("Obj[] true");
if (names instanceof Object)
System.out.println("Obj true ");
double d = Math.sqrt(-1.0);
int x = (int) d;
System.out.println("d= " + d + " cast to int Value = " + x);
long lx = Long.MAX_VALUE;
float f = lx;
int[] nnn = new int[1000];
Object obj = nnn;
Cloneable clobj = nnn;
Serializable sb = nnn;
int[] xxx = (int[]) nnn.clone();
}
}
|