watz the difference between abstract class and interface?
Which one u ill choose as a designer?



watz the difference between abstract class and interface? Which one u ill choose as a designer?..

Answer / ajay roy

Abstract Class is the one which contains atleast one
abstract method and other method may not be essentially
abstract. However, interface always have only method
signature in it. We can not have methods with
implementation in interface unlice abstract class.

When designer wants to use common property of a system then
he should go with abstract method. Because in abstract
method he can have implementation of common properties
along with signature of other method which can be
implemented as per need.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

0 Answers  


Can a lock be acquired on a class?

3 Answers  


What is protected access modifier?

0 Answers  


What is unicode full form?

0 Answers  


What is object

6 Answers  






how to create a jar file in java

1 Answers  


Java run-time system generates What class of exceptions?

2 Answers   TCS,


What is pojo class in java?

0 Answers  


which class is the wait() method defined in? : Java thread

0 Answers  


What is the association?

0 Answers  


What is mvc in java?

0 Answers  


What is update method and when it is called?

2 Answers   TCS,


Categories