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?
Answer Posted / 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 |
Post New Answer View All Answers
What is the program compilation process?
How do you print array in java?
How we create object in copy constructor?
What is anti pattern in java?
What is the difference between multitasking and multithreading in Java
How hashmap works in java?
Explain the difference between abstract classes and interfaces in java?
What does isempty () do in java?
What about main() method in java ?
What do you mean by JVM?
How does queue work in java?
What is difference overloading and overriding?
What is bufferedwriter?
What do you mean by local class?
What is the purpose of a transient variable?