<posted September 23, 2000 09:26 AM>
And a questuion to moderators:
now we all are recomended (for not to say more) to use our REAL names. When one
of us gave possible reasons for not to do it, s/he was referred as "horribly paranoid".
So I wonder, what are VALID reasons for not to reveal someone identity? Could
moderators give us a hint?
I cannot make up any good reason for hiddin your name, if you got such wonderful
scores. I think that's why many people did not trust Anonymous after his/her first
I even agree to be called "horribly curious" - it is true. Who else can survive this
And Gongratulations, Gongratulations, Gongratulations again!
posted September 23, 2000 09:41 AM
Please direct your questions about JavaRanch stuff to the JavaRanch forum. I'd kinda
like to keep all of this sort of discussion in one place.
Originally posted by robl:
Which of the following statements are true?
1) An interface can only contain method and not variables
2) Java does not allow the creation of a reference to an interface with the new keyword.
3) A class may extend only one other class and implement only one interface
4) Interfaces are the Java approach to addressing the single inheritance model, but require implementing classes to create the functionality of the Interfaces.
The answer did not include number 2, but I thought that an interface could not be instantiated.
Please explain why the new keyword can be used with an interface.
Originally posted by Karthik Subramanian:
I would like to contradict with you Deepak regarding the point
that main method being overriden.I don't think they can be overriden in a file there can be only one correctly formed
Any remarks ??
Originally posted by yanish:
22. If you want subclasses to access, but not to override a superclass member method, what keyword should precede the name of the superclass method? (Fill in blank).
I wrote: [b]super but the MindQ says it's wrong.
Was I wrong?[/B]
Originally posted by Baskaran Subramani:
I too have the same doubt as Krishna. I expected a class cast exception at runtime in
q = (Q2)t;
Since t is of type parent, how come it is not giving class cast exception at runtime?
Originally posted by Vasanth Appaji:
What about the object that was referenced by c1 earlier before c1 was assigned c. Since the since object does not have any reference, it must be eligible for GC right???