Answer Posted / janet
1.All the methods declared inside an interface are abstract
where as abstract class must have atleast one abstract
method and others may be concrete or abstract.
2.In abstract class ,keyword abstract must be used for the
methods where as interface we need not use that keyword for
the methods.
3. Abstract class must have subclass where as interface
can't have subclasses.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is a byte array?
What is the basic of java?
How do I compare two strings in word in java?
What variables are stored in stack?
What does nextint () do in java?
In a class implementing an interface, can we change the value of any variable defined in the interface?
What is the use of a conditional inclusion statement in Java ?
What is the type of lambda expression?
Is object a data type in java?
What is the function of static in java?
What are the steps in the jdbc connection?
Define interface in java?
How do you define a method?
How many times finalize method will be invoked? Who invokes finalize() method in java?
What is java thread dump, how can we get java thread dump of a program?