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 is an image buffer?
What are heap memory and stack memory and what are memory tables.
Why destructor is not used in java?
Write the code for Palindrome ?
What is private public protected in java?
what is stringtolennizer with example?
Does constructor be static?
Can two objects have same hashcode?
What does indexof return in java?
What is an off by one error in java?
What is field name?
"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.