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 |
how to create multithreaded program? : Java thread
What is meant by 'bit masking' in java?
Explain restrictions for using anonymous inner classes?
What is the right data type to represent a price in java?
What is meant by JVM? Is JVM platform independent or not?
What is the use of TL?
What is the difference between reader/writer and inputstream/output stream?
What is increment in java?
When should you use arraylist and when should you use linkedlist?
what is difference between class and object?
43 Answers College School Exams Tests, HCL,
What is ph and buffers?
State some situations where exceptions may arise in java?