Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



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

What is an image buffer?

0 Answers  


What are heap memory and stack memory and what are memory tables.

0 Answers   Aspiring Minds,


Why destructor is not used in java?

0 Answers  


Write the code for Palindrome ?

2 Answers   Bally Technologies,


What is private public protected in java?

0 Answers  


what is stringtolennizer with example?

2 Answers   Symphony,


Does constructor be static?

0 Answers  


Can two objects have same hashcode?

0 Answers  


What does indexof return in java?

0 Answers  


What is an off by one error in java?

0 Answers  


What is field name?

0 Answers  


"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.

2 Answers  


Categories