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
Can we change the scope of the overridden method in the subclass?
How do you declare an array in java?
What is the difference between preemptive scheduling and time slicing in java programming?
How to create an interface?
What are class members by default?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
Say any two properties in beans?
What are the different data types in java?
How do I find and replace in word?
How do you implement polymorphism in our day to day life?
What is regex java?
What are the three parts of a lambda expression?
What are different exception types exceptions available in java ?
How many bytes is double?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls