what is main difference b/w abstract class and interface
Answer Posted / shikha sharma
1) Every method in interface class should be abstract, but
this is not necessary in abstract class.
2)abstract class is a class which must have at least one
abstract method.
interface is a class which having all abstract methods.By
default interface methods are public abstract.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is final access modifier in java?
What is data member in java?
What is a classloader in java?
What is the string function?
I want to print “hello” even before main is executed. How will you acheive that?
What is method overloading in JAVA? Why is it not present in C ?
How do you reverse a list?
What is implicit object in java?
What does a za z0 9 mean?
How do you insert a line break?
Does constructor return any value?
What is the final keyword in java?
What is difference between path and classpath variables?
How do generics work in java?
What is the use of generics? When was it added to the Java development Kit?