Originally posted by Ernest Friedman-Hill:
Or more to the point, because "null" isn't a valid boolean value.
Ok sir, I agree with you but when i make constructor
private Confusing(boolean Array[])
rather than this
private Confusing(boolean Array)
it is giving output as
Boolean ...
when the object is instantiated
----------------------------------------------------------------------------------------------------------------------
Here in this case also , "null is not a valid Boolean value " then why this constructor[ private Confusing(boolean Array[]) ] is getting called ?
Sorry , i am not getting things correctly
as soon as i make an "array of boolean variables" in the Constructor signature , it gives me output as
Boolean ...
but when i change the signature of the Constructor to a boolean variable like this
private Confusing(boolean Array)
it gives me output as
Object ...
"Though in both the cases null is not a valid value for a boolean ."
Please help me .... :roll:
If possible do explain this also
When i make a constructor having an array of Boolean the output is
Boolean...
but when i make a constructor having a variable of Boolean type the output is
Object.... ? ?
Thanx in advance