what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / kala
1) if the class is abstract. this class con't instatiate any
object. if we that class implemented with interface, we can
instatiate object with respect interface methods.
2) if we extend that particular abstract class, we must be
implemented all those abstract methods in that class.
otherwise it will automatically become abstract class. in
interface, if we implements the interface not compalsory
implemented, we can use those class ref.
| Is This Answer Correct ? | 47 Yes | 36 No |
Post New Answer View All Answers
Is integer passed by reference in java?
Is java hard to learn?
List out five keywords related to exception handling ?
List the three steps for creating an object for a class?
Is arraylist sorted in java?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
How to add menushortcut to menu item?
What's the base class in java from which all classes are derived?
What are the Main functions of Java?
What restrictions are placed on method overriding?
What is default locale java?
Is null == null in java?
What is double word?
What is a loop java?
Can you inherit from an abstract class java?