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
What does it mean to flush a file?
What is stack class in java?
Can we override tostring method in java?
What is t type java?
What is vector?
What is method in java with example?
Which collection allows duplicate values in java?
What is public/private protected in java?
What are the different types of collections in java?
How many types of string data types are there?
Are maps ordered java?
Does the order of public and static declaration matter in main method?
What environment variables do I need to set on my machine in order to be able to run java programs?
how we can make a read-only class in java?
What is a classloader in java?