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 are the core java topics?

0 Answers  


can you create interface instance ?

54 Answers   Fidelity, TCS,


Can we define a package statement after the import statement in java?

0 Answers  


Can we restart a dead thread in java?

0 Answers  


What is the advantage of preparedstatement over statement?

0 Answers  






Write a java program to get a string of words and print the numbers of each word count in descending order

11 Answers   Logica CMG, Subex,


What are packages in java?

0 Answers  


What is string in java?

0 Answers  


What is skeleton and stub?

0 Answers  


What is a method type?

0 Answers  


What is a boolean structure?

0 Answers  


Hi can u pls tell me what is the use of marker interface. Iknow what is marker interface but what ability will the object get by implementing this.

3 Answers   CGI,


Categories