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 do the thread?class methods run() and start() do?
How do you compare arrays in java?
What is thread life cycle?
What about main() method in java ?
Do I need to import java.lang package any time? Why?
how can u create the object with out new operator
What modifiers are allowed for methods in an interface?
How to pass arraylist to stored procedure in java?
Name the class that used to read objects directly from a stream?
Variables used in a switch statement can be used with which datatypes?
if two references are having same hash codes,is that means those are refering to same object?
Can a class be declared as static?