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 do the thread?class methods run() and start() do?

0 Answers  


How do you compare arrays in java?

0 Answers  


What is thread life cycle?

0 Answers  


What about main() method in java ?

0 Answers  


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

1 Answers  


how can u create the object with out new operator

2 Answers  


What modifiers are allowed for methods in an interface?

0 Answers  


How to pass arraylist to stored procedure in java?

0 Answers  


Name the class that used to read objects directly from a stream?

4 Answers   Wipro,


Variables used in a switch statement can be used with which datatypes?

0 Answers  


if two references are having same hash codes,is that means those are refering to same object?

5 Answers   CTS,


Can a class be declared as static?

0 Answers  


Categories