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
What are streams in java 8?
Explain treeset?
What is java util?
What are access specifiers in java ?
What is args length in java?
how to create multithreaded program? : Java thread
What is connection class in java?
How does class forname work in java?
How to avoid memory leak in java?
What is boolean logic?
What is default size of arraylist in java?
Why are arrays useful in java?
What is java jit compilers?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification
What is variable in java?