Hi buddy, well i got that there is always a default
constructor with abstract class. OK. But why not with interface?
Thanks in advance.
Answer Posted / harsha
Just a samll correction... Interfaces are part of
inheritance tree.
Inheritance is identified by both extends and implements
keywords.
Regarding the default constructor.. All the classes which
extend Object class will have a default constructor.
As we all know any interface cant extend Object class..
Interface cannot have default constructor.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
what are abstract functions?
Which keyword specify that a variable is effectively final ?
What is a hashmap used for?
What is the synonym of procedure?
Explain a few methods of overloading best practices in java?
If try block is successfully executed, Then Is Finally block executed?
What is the common usage of serialization? What exceptions occur during serialization?
What is classes in java?
What is a function in java?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
Is null a string in java?
In a container there are 5 components. I want to display all the component names, how will you do that?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
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 java cast null?