class{
...
...
interface myinterface{
...
...
}
abstract class{
..
..
}
...
..
..
}
is this possible to write "Interface and/ or Abstract class
inside a class ?
if possible whcich one is possible
is only interface?
is only abstract?
Answers were Sorted based on User's Feedback
Answer / karunakaran
I have tried it.It is working.We can have abstract class
and/or interface inside a class.
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / ranganathkini
Yes it is possible to write nested interfaces/abstract
classes inside another class.
Hope it is possible! :-)
| Is This Answer Correct ? | 12 Yes | 1 No |
What are the differences between heap and stack memory?
What is static import?
What is the difference between variable & constant?
List any five features of java?
What do you understand by garbage collection in Java? Can it be forced to run?
Can I have constructor in Interface?
What is the difference between this() and super()?
What are the benefits of operations in java?
We can write any Java Logics in our JSP. Then why we are using servlets(Controller Layer) to interact with the DAO ?
What are keywords give examples?
What are the benefits of operations?
How do you sort a list in java?