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 do you change an int to a string?
What is an escape character in java?
Java is pass by value or pass by reference? Explain
Is age discrete or continuous?
What are extraneous variables examples?
Write a program to check for a prime number in java?
What is the purpose of garbage collection in java? When is it used?
Does isempty check for null?
What is a two-pass assembler?
What are the restriction imposed on a static method or a static block of code?
What is equals method in java?
What is general methodology?
Can you pass by reference in java?
Write a program to find maximum and minimum number in array?
How to do a true java ping from windows?