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



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. Hi,
I want to read the barcode and print it

View Tutorial          By: Santu at 2013-03-12 18:15:18

2. simply nice.. Thank you.
View Tutorial          By: Anil at 2011-11-30 06:36:23

3. it is very good service.
View Tutorial          By: rajesh at 2009-11-14 02:48:18

4. U should give the output also.. then only it will
View Tutorial          By: Mohamed Younus at 2011-07-07 10:13:54

5. actually very good site. I learned more & more
View Tutorial          By: shiranthi at 2012-07-12 12:18:38

6. what about the access modifiers, while talking abo
View Tutorial          By: Seetha at 2010-06-04 01:14:02

7. more daitlled coding for me
View Tutorial          By: fred at 2008-07-15 05:56:49

8. Error loading SolarisSerial: java.lang.Unsatisfied
View Tutorial          By: amit doshi at 2009-04-06 02:00:28

9. You should show how to implement a custom sorting
View Tutorial          By: AngleWyrm at 2012-12-13 19:35:30

10. thankssss to prograem
View Tutorial          By: maha at 2010-05-21 05:14:36