hi there,
plz help me with this
correct me if iam wrong.
1. float f = new float[100];
line 1 : f[99]=0;
is line true or false
My answer : false
2. A (parent) -> B (Subclass of A ) -> c (subclass of B)
is B instanceof Object?
My answer : true
3. class compareeq
{ int i;
compareeq(int i)
{ this.i = i; }
public static void main(
String a[])
{
compareeq c1 = new compareeq(50);
compareeq c2= new compareeq(50);
Integer i1 = new Integer(10);
Integer i2 = new Integer(10);
if(i1.equals(i2))
System.out.println("Integer true");
if(c1.equals(c2))
System.out.println("YES");
}
}
Answer: Integer true.
Why just integer ? shouldnt be both true?
thanks in advance