Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classes defined inside an interface

 
Rui Wang
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15207
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mrchicos", please check your private messages. You can see them by clicking My Private Messages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic