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
Does windows 10 need java?
What is comparable and comparator interface? List their differences
What is the difference between form & report?
What's the default access specifier for variables and methods of a class?
How do you check if a string is lexicographically in java?
Can you access non static variable in static context?
Why main function is static?
How to create a base64 decoder in java8?
Can a abstract class be defined without any abstract methods?
Why do we declare a class static?
What is boolean strategy?
What does || mean in code?
What happens if an exception is not handled in a program?
Is string a class?
what are abstract functions?