Comment on Tutorial - What is the difference between interface and abstract class? By Karthik



Comment Added by : RAJA

Comment Added at : 2015-06-26 17:28:31

Comment on Tutorial : What is the difference between interface and abstract class? By Karthik
What is the difference between an Interface and an Abstract Class?
A. 1.An abstract class can have instance methods that implement a default behavior
B. 2. An Interface can only declare constants and Interface methods, but cannot implement default behavior and and all methods are implicitly abstract...
C. 1. An abstract class is a class which may have the use all flavors of class members (private, of protected, et) but has some abstract methods.
2. An Interface has all public members and no implementation.
C. both A and B
D. none of these


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Seriously very nice explanation.... Thank You
View Tutorial          By: Pulkit agrawal at 2012-03-20 10:28:10

2. thank you very much...
Explained in a simpl

View Tutorial          By: vineela at 2013-02-18 10:29:08

3. Really clear and lucid explanation abt realloc ...
View Tutorial          By: metarus208 at 2012-01-01 14:25:25

4. this is i got error msg when i run a my program .
View Tutorial          By: anbu at 2009-04-08 02:41:17

5. Great!
Thnks for your help..

View Tutorial          By: ramu at 2011-06-18 07:56:56

6. #include<stdio.h>
void main(){

View Tutorial          By: niru at 2012-07-21 07:26:27

7. thanks for sharing.It's Easy to Understand
View Tutorial          By: Ganesh Abothula at 2013-01-23 10:43:55

8. Thanks! It worked fine for me.
View Tutorial          By: John Franklin at 2009-04-02 10:37:44

9. I was using commons-logging-1.0.4.jar previously,
View Tutorial          By: Pradeep at 2009-09-29 06:39:21

10. Hi Ramlak,
I am using jdk1.4.2 to run the a

View Tutorial          By: mounika at 2008-04-27 03:05:36