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 are thread safe functions?
What is the use of conditional statement?
What happens if a constructor is declared private?
When do we use hashset over treeset?
What is the advantage of preparedstatement over statement?
Explain java coding standards for constants?
How many bits is a 64 bit byte?
What do you mean by default constructor in java?
Can we convert stringbuilder to string in java?
What is final modifier?
What is sizeof () operator?
How can you write a loop indefinitely in java programming?
what is meant wrapper classes?
What is a singleton class in Java?
What is the difference between throw and throws keywords?