diff between abstract methods and interfaces with programing
(code) example?

Answer Posted / naresh p

an abstract class contains the concrete methods as well
abstract methods. It may instance variables and static
final variables
an interface contains only abstract methods. all the
variables are by default static and final.
an abstract class contains constructor where as an
interface does not have constructors...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a variable and constant?

762


What is the difference between processes and threads?

732


What causes memory leaks in java?

656


What is the memory leak in java?

729


What are byte codes?

849


List primitive java types?

775


how would you implement a thread pool? : Java thread

674


What are the uses of java?

767


What is a parameter in java?

721


What is the covariant return type?

765


What is the difference between static and non-static variables in java programming?

697


Can a final variable be initialized in constructor?

688


How are variables stored?

719


Are generics important java?

714


What is the use of parse function in java?

698