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 a generic data type?
Why null interfaces are used in Java?
What are synchronized methods and synchronized statements in java programming?
What is ternary operator in java?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
system.out.println(1 + 3);
According to java operator precedence, which operator is considered to be with highest precedence?
Java run-time system generates What class of exceptions?
What is a method ?
how to write a program for sending mails between client and server
Name few "optional" classes introduced with java 8 ?
What are types of Java applications?