core Java interview Question and answers, core java interview questions
Hi, Today i would like to share some more Core Java interview questions Mostly Focussing On the Topic Interface
Hi, Today i would like to share some more Core Java interview questions Mostly Focussing On the Topic Interface
1. Can a abstract class be defined without abstract methods?
Yes
2. Can a method inside a Interface be declared as the final?
No it is not possible. if we do this it result in compilation error. public and abstract are only applicable modifiers for the method declaration in an interface.
3. Is it possible for one Interface implement another Interface?
Intefaces doesn't provide implementation so interface cannot implement another interface.
4. Can one Interface extend another Interface?
Yes
5. Can a Class extend more than one Class is it possible ?
No it is not possible. A Class can extend only one class but can implement any number of the Interfaces.
6. Is it Possible Can an Interface be final?
No Not possible. It will result in compilation error.
7. Can class be defined inside an Interface?
Yes it is possible
8. Can an Interface be defined inside the class?
Yes it is also possible.
9. What is a Marker Interface Explain?
It is an Interface which doesnot have any declaration inside but still enforces the mechanism.
10. Name the object oriented Concept is achieved by using overloading and overriding?
Polymorphism (one of the oops concept).
ConversionConversion EmoticonEmoticon