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

Java program to get location meta data from an image

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

Archived Comments

1. good
View Tutorial          By: vishal at 2013-02-11 03:50:04

2. @Amit Shrivastava : Dear Amit I have tried the sam
View Tutorial          By: Sanjay at 2015-05-14 19:15:51

3. good work done.
View Tutorial          By: Nitin at 2009-08-29 10:51:41

4. simple and exelent programs
View Tutorial          By: prasad at 2012-08-29 00:05:04

5. hai
View Tutorial          By: ayyannan at 2011-01-21 21:27:35

6. hai, i tried the abvoe code, m getting the follwin
View Tutorial          By: charan at 2011-10-20 12:59:59

7. Good stuff and good example to support it.
View Tutorial          By: tabrez at 2012-04-10 01:44:48

8. Caught java.lang.ClassNotFoundException: com.sun.c
View Tutorial          By: A.Balaji at 2010-09-13 00:15:48

9. Good Luck....
View Tutorial          By: nagarajan at 2011-06-19 03:55:49

10. Thanks for the article. I finally finish my task a
View Tutorial          By: bali web at 2012-07-10 13:47:49