If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?
Answer Posted / namita
In abstract class concrete methods are also there. concrete
methods are the one which has implementation. so in future
if any programmer wants to give concrete methods can use
abstract class not interface.
In abstract class for methods and variables
public,private,protected modifier can be use. but in
interface public and abstract are permitted.
Is This Answer Correct ? | 18 Yes | 6 No |
Post New Answer View All Answers
What is java basic concept?
What is an iterator interface in java programming?
how to write a server program and sending the mails to the server using smtp protocol please help me
Write a program to print fibonacci series
What is the dot operator?
What is application system?
what is optional in java 8?
What is the use of put method?
Can we make constructors static?
What is the public field modifier?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
How can we create an immutable class in java?
What is the use of singleton?
What are extraneous variables examples?
Why hashcode is used in java?