what is the difference between abstract class and
Interface?where we can use it in realtime projects?

Answer Posted / rashmi kalra

1. Abstract classes may have concrete methods while
interfaces have no methods implemented.

2. Interfaces do not come in inheriting chain while
abstract class come in inheritance.

Is This Answer Correct ?    20 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do I need to use reflection feature in java?

622


What are the types of methods in java?

577


What is variable in java?

520


Does java vector allow null?

539


Is singleton class thread safe?

531






What is method and methodology?

608


What is void keyword?

667


Where will it be used?

1504


What are default methods ?

574


What is ph and buffers?

518


How is tree Mirroring implemented?

627


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?

1931


What is the concatenation operator in java?

578


Where is java located?

495


If system.exit (0); is written at the end of the try block, will the finally block still execute?

613