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


Please Help Members By Posting Answers For Below Questions

What are streams in java 8?

552


Explain treeset?

595


What is java util?

543


What are access specifiers in java ?

593


What is args length in java?

669






how to create multithreaded program? : Java thread

512


What is connection class in java?

516


How does class forname work in java?

487


How to avoid memory leak in java?

602


What is boolean logic?

567


What is default size of arraylist in java?

565


Why are arrays useful in java?

545


What is java jit compilers?

562


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

1381


What is variable in java?

529