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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a marker interface?

855


What is the use of StringTokenizer class?

835


Is arraylist dynamic in java?

736


What is the maximum size of array in java?

760


What is slash r?

776


Explain what do you mean by functional overloading in java?

808


What is hashmap in java?

836


List the interfaces which extends collection interface?

750


What is the purpose of javac exe?

801


Does java support function overloading, pointers, structures, unions or linked lists?

853


What does sprintf return?

826


What is parseint?

743


Do I need to import java.lang package any time? Why?

1064


What are implicit objects in java?

770


What is intern method in java?

836