Plz Clarify..

1) If i declared a class as final class..all the methods and variables also default final in this class?2) Which one is faster abstract or interface why?
[167 byte] By [nbka] at [2007-11-27 5:46:31]
# 1

> 1) If i declared a class as final class..all the

> methods and variables also default final in this

> class?

Not exactly, but since you cannot subclass a final class, effectively, yes, the methods are final. "Final" means something different when applied to variables, though

> 2) Which one is faster abstract or interface why?

Neither, and nor does it matter. If there were any difference it would be so negligible as to not matter at all. A very odd question

georgemca at 2007-7-12 15:29:28 > top of Java-index,Java Essentials,New To Java...
# 2

> 1) If i declared a class as final class..all the

> methods and variables also default final in this

> class?

Methods yes, implicitely (though irrelevant), variables no (because final means something else for them).

> 2) Which one is faster abstract or interface why?

Both won't execute anything.

CeciNEstPasUnProgrammeura at 2007-7-12 15:29:28 > top of Java-index,Java Essentials,New To Java...
# 3
Thanx for your clarifications
nbka at 2007-7-12 15:29:28 > top of Java-index,Java Essentials,New To Java...
# 4
You can check more such questions on Core Java here... http://redirect.alexa.com/redirect?interviewjava.blogspot.com/
pundeera at 2007-7-12 15:29:28 > top of Java-index,Java Essentials,New To Java...
# 5
THANK YOU VERY MUCH
nbka at 2007-7-12 15:29:28 > top of Java-index,Java Essentials,New To Java...