File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes classes defined inside an interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "classes defined inside an interface" Watch "classes defined inside an interface" New topic

classes defined inside an interface

Rui Wang

Joined: Jun 02, 2005
Posts: 6
Where can I find some informations (webpages, or books etc.) defining classes inside an interface?

Why does the language provide such ways to define classes? How are these classes different from regular classes? Under what scenarios should I decide to define a class inside the interface?

I can find pieces information here and there, but I would love to read up some formal language definition or some kind summaries. Thanks!

BTW, I browsed through java language specifications, but didn't find such information.
Panseer Kaur
Ranch Hand

Joined: Nov 01, 2007
Posts: 44
Katherine Sierra, Bert Bates

That book is pretty popular around here, though it's for the SCJP specifically it has pretty much everything you ever wanted to know about Java. As far as webpages go I'm certain there are some links from Javaranch that would be helpful though I don't know them.

Here is a somewhat useful thread on it though

nested thread in interface
Rui Wang

Joined: Jun 02, 2005
Posts: 6
Panseer, thanks for your recommendations and the link! Both helps!

I am getting the book to review Java. Thanks!
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15094

"mrchicos", please check your private messages. You can see them by clicking My Private Messages.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: classes defined inside an interface
jQuery in Action, 3rd edition