Difference between interface and abstract class with ex.
Answer Posted / aditya
Abstract Class :
1. Can have implemented(non-abstract) method
2. Can have any visibility public,protected,private
Interface :
1. All methods are non-implemented(abstract)
2. Only visibility is public or none
3. All variables should be static and final
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
How infinite loop is declared?
What was java originally called?
What is heterogeneous in java?
What is the meaning of course?
What’s the difference between unit, integration and functional testing?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
What do you mean by inner class in java?
What are keywords and reserved words in java?
What is the range of the short type?
what is the volatile modifier for? : Java thread
What are keywords in java?
What is final, finally, finalize?
What is classpath?
What do you understand by an io stream?
Is it necessary for the port addresses to be unique? Explain with reason.