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 the difference between an array and an array list?
What is the use of inner class?
What is the default initialized value of a boolean type variable?
Is it possible for a yielded thread to get chance for its execution again?
What is deserialization?
Difference between JDK, JRE, JVM
16 Answers Deloitte, HCL, Mind Tree, Oracle, Reliance, TCS, ThinkBox,
Explain creating threads by implementing runnable class?
Name four container classes.
What is the do while loop syntax?
What is codebase?
What do you mean by Hash Map and Hash Table?
How is java created?