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



class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } ..

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

class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } ..

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

Post New Answer

More Core Java Interview Questions

Define Compiling?

3 Answers  


What is sortedmap in java?

0 Answers  


What is udp in java?

0 Answers  


What are the classes of java?

0 Answers  


what is default layout of JFrame class?

6 Answers  






Why does it take so much time to access an applet having swing components the first time?

0 Answers  


Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?

2 Answers   ADP,


explain about jre and jvm

2 Answers  


Difference between Array and vector?

9 Answers  


What are the differences between this and super keyword?

0 Answers  


What is contractor means and methods?

0 Answers  


What is light weight component?

3 Answers  


Categories