what is difference between abstract class and interface?

Answers were Sorted based on User's Feedback



what is difference between abstract class and interface?..

Answer / bipin chandra sai.s

abstract means when don't have definition but it has only
declaration is called abstract class,and abstract class
also donot have any objects.

interface means in the concept of multiple inheritance we
use interface for declaring the subclasses instead of class
declaRATION we use interfaces

Is This Answer Correct ?    4 Yes 0 No

what is difference between abstract class and interface?..

Answer / shubham soni

There is no difference in the functionality of these two.The
only difference is that a class cannot extend an abstract
class if it already is extending some other class.An
interface on the other hand can be implemented in any
situation which makes them very powerful.Also user defined
exceptions can be defined within an interface itself which
is not the case with an abstract class.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More General Aptitude Interview Questions

7589 ? ? = 3434 (a) 3721 (b) 4155 (c) 3246 (d) 11023 (e) None of these

5 Answers   Wipro,


A boy travels 285kms in 6hours in 2 stages.. first stage- 40km. second stage-55km.how much distance does he covers?

6 Answers  


A cube is painted red on two adjacent faces,yellow on two faces opposite to red faces and green on the remaining faces. It is cut into 64 smaller cubes of equal size.How many cubes have one face green and one of the adjacent faces red or yellow?Explain with diagram

1 Answers  


Explain the logic k=num%10; sum=sum+k; num=num/10;

3 Answers   Accenture,


Two trains start from A & B and travel towards each other at speed of 50kmph and 60kmph resp. At the time of the meeting the second train has traveled 120km more than the first. The distance between them is

8 Answers   TCS, Wipro,






7,8,12,21,37,?

9 Answers  


A trip takes 6 hours to complete. After traveling 1/4 of an hour, 1 3/8hours, and 2 1/3 hours, how much time does need to complete the trip? There are 30 socks in a drawer. 60% of the socks are red and the rest are blue. What is the minimum number of socks that must be taken from the drawer without looking in order to be certain that atleast two blue socks have been chosen?

0 Answers   Wipro,


there was a swimming pool of squre shape and it is having four trees at four ends....how to double the size of swimming pool without cutting the trees...?

7 Answers   Infosys,


A,H,A,L,?,H,E

10 Answers   CTS, ICICI,


in a question ,last part has, the ages of two people has the ratio of 6:6 and by adding the numbers we get 44, after how many years the ratio would be 8:7?

0 Answers   TCS,


What would be the rank of the word LABOUR in the dictionary if all the possible permutations of the alphabets of LABOUR are done?

0 Answers   CGI,


There are 150 weights .Some are 1 kg weights and some are 2 kg weights. The sum of the weights is 260.is the number of 1kg weights?

0 Answers   TCS,


Categories