Core Java Releated Quesstion
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
An Interface can only declare constants and instance methods, but cannot implement default behavior.
Hope this help...
Regards,
Shalini
SCJP 1.4
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
There's no such beast as a "complete virtual" class and interfaces aren't classes (even if they compile to .class files, probably because the JVM designers didn't want to introduce yet another file type).
42
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Originally posted by Shalini Chandel:
An Abstract class declares have at least one instance method that is declared abstract which will be implemented by the subclasses. An abstract class can have instance methods that implement a default behavior.
Wrong.
Abstract class :
1. May have no methods at all:
2. May have no abstract methods (all methods are concrete):
regards,
MZ
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Originally posted by Jeroen Wenting:
no. In interface in Java has a somewhat similar role to a pure virtual class in C++ (though there are important (mainly philosophical) differences as well).
There's no such beast as a "complete virtual" class and interfaces aren't classes (even if they compile to .class files, probably because the JVM designers didn't want to introduce yet another file type).
interfaces aren't classes? Agreed Wenting. But I said you can assume them to be COMPLETE abstract classes. I dont want to talk of C++ or terms like "virtual" in an SCJP forum, the following link would speak what I meant...
http://www.google.co.in/search?biw=800&hl=en&q=%22interfaces+are+abstract+classes%22+java&btnG=Google+Search&meta=
[ June 28, 2005: Message edited by: Akhil Trivedi ]
Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
| if you think brussel sprouts are yummy, you should try any other food. And this tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |







