Difference between interface and abstract class with ex.
Answer Posted / sreenivas g
Abstract Class : If a class contains atleast one
non-concrete(not implemented) method, it is said to be
Abstract class. it should be defined with keyword abstract.
It is a combination of both implemented and non-implemented
methods.
Interface : By default all the methods in Interface are
abstract methods. All the methods are non-implemented in
interface.
Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
What will be the initial value of an object reference which is defined as an instance variable?
Can you access non static variable in static context?
What is the use of arrays tostring () in java?
How does the garbage collector works in java?
can rmi and corba based applications interact ?
What is default constructors?
Which is better arraylist or vector?
What is exception propagation?
What is use of set in java?
What are different types of references?
Can we have try without catch block?
How many types of assembly languages are there?
What exactly is a .class file?
What is the statements?
Is java a software?