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 javac_g?

598


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

678


does java support pointers?

574


What are the difference between composition and inheritance in java?

523


Can you give names of Container classes?

1867






Can we define package statement after import statement in java?

569


What are the different ways of creating thread?

578


What is entry in java?

541


What is difference between static variable and global variable?

554


When is the finally clause of a try-catch-finally statement executed?

516


Explain working of call by reference function invoking.

598


What is an array in java?

648


Are there structures in java?

564


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

534


What is use of super keyword?

575