what is difference between interface and abstract class..?
Answer Posted / kumar
Interface:
1)It will contain only abstract methods
Abstract Class:
1)Any class can be declared an abstract class ,but if a
class contains an abstract method it should be declared as
an abstract class.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism java example?
How many bytes is double?
What do you understand by java virtual machine?
Explain the importance of finally over return statement?
What is hash table in java?
Explain about varargs in java?
What is time complexity algorithm?
What is the difference between serial and throughput garbage collector?
What is the purpose of the enableevents() method?
When throws keyword is used?
What is the size of string?
What is the use of singleton?
How do you test a method for an exception using junit?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
Can we declare a class as abstract without having any abstract method?