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. I want to use the same code in c++,
Can a

View Tutorial          By: vijay at 2009-09-26 00:47:02

2. how can i use <img> tag in message body?

View Tutorial          By: Sonal at 2012-11-07 07:05:33

3. plz explain in
simple way like give ea

View Tutorial          By: mani at 2008-10-20 01:32:50

4. FILE:- lpton.pl......
.....................

View Tutorial          By: Prats at 2013-02-02 17:33:40

5. Very nicely explained, especially the step-by-step
View Tutorial          By: Kaushik at 2012-09-20 04:14:21

6. but include<iostream> is main function.
View Tutorial          By: glen at 2009-02-03 22:19:22

7. Solution for javax.comm.NoSuchPortException

View Tutorial          By: Manjunath Suresh Vaidya at 2011-03-09 04:46:57

8. import java.util.*;

class Pstring<

View Tutorial          By: Bhaskar.pg at 2014-05-29 12:39:52

9. Please provide web.xml for the example
View Tutorial          By: Amit at 2008-12-24 02:16:59

10. how to run the sms sending program
wether v

View Tutorial          By: ram at 2008-02-26 22:30:13