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

Answer Posted / hanu

Both are same in many ways ..Except
if we extend that particular abstract class, we should be
implemented all those abstract methods in that class.
In the case of interface, we can implement any numbber of
methods to that interface ..

Is This Answer Correct ?    13 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between menuitem and checkboxmenu item?

1046


Difference between error and exception

5435


What is exception hierarchy in java?

757


What is meant by singleton class?

782


Can you create an object of an abstract class?

753


What occurs when an object is constructed?

757


What is a subsequence of a string?

792


What is the SimpleTimeZone class?

1997


What is threaded programming and when is it used? : Java thread

743


What are the different types of sorting in java?

723


Why are the destructors for base class and derived class called in reverse order when the program exits

1924


Is 0 a prime number?

732


I want to persist data of objects for later use. What’s the best approach to do so?

692


What is meant by method?

767


What is the difference between yield() and sleep()?

748