Difference between abstract class and Interfaces?
Answer Posted / hema
Abstract Class is the Class where it can have Methods with
both Definition and Declaration.
Method Declaration: public void Display();
Method Definition: public void Add(){ ..code goes on here...}
When all the methods in a class are only Declared then it is
Interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the pointers in Java?
Give any two differences between C++ and java.
Explain spliterator in java8?
What is an interoperable application in java ?
What is the largest long allowed by java?
Can we override tostring method in java?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
what is meant by encapsulation?
What value is a variable of the string type automatically initialized?
What are the topics in core java?
How many types of voids are there?
What is valid keyword in java?
Explain the difference between map and flatmap stream operation?
Write a java program to generate fibonacci series ?
What does the @override annotation do?