Can you explain the difference b/n abtract and interface
with a good example,?In what cases we have use abtract and
what case interface?
Answer Posted / nt.jayan
Interface contains final variable and method signatures
only. All of this method and variable are should be public.
In Technically interface like Pure Abstract class.
Abstract class contains both abstract method also may having
some method defination. When we want to use some of the
functionality in abstract we use Abstract class.
Also, By using Interface we achieve multiple inheritence
using Implements. When we use Abstract class we can extends
only.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the 3 types of loops in java?
Which programming language is best in future?
if u open login & logout ,how can udisplay the timelogin & logout members ?
How do you write a conditional statement?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
What are peerless components in java programming?
What are the important features of Java 11 release?
When throw keyword is used?
Justify your answer that you can't define a method inside another method in java, if you can then how?
How are multiple inheritances done in Java?
how to convert Java project into Maven ?
What is pangram in java?
what happens when a thread cannot acquire a lock on an object? : Java thread
How many types of java are there?
What is a buffer in computer?