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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a local, member and a class variable?

584


What is the use of a conditional inclusion statement in Java ?

596


what is meant by abstract class?

662


Can static method access instance variables ?

614


Write a program in java to establish a connection between client and server?

513






What is merge sort in java?

594


How will you communicate between two applets?

642


How many boolean functions are there?

516


Why do we need strings in java?

536


What is boolean example?

537


What is constant in programming?

563


Explain about version control?

599


What is the difference between @before and @beforeclass annotation?

549


What is a linkedhashmap java?

568


What is the method to expand and collapse nodes in a jtree?

622