File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Bunkhouse Porch and the fly likes Book on Java Internals Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Books » Bunkhouse Porch
Bookmark "Book on Java Internals" Watch "Book on Java Internals" New topic

Book on Java Internals

Vid Srini
Ranch Hand

Joined: Aug 17, 2006
Posts: 35
Can anyone suggest me a good book on Java Internals.

If my explanation is too lengthy,I apologise for that.

1)If I say Iam instanciating an Object
2)or using Collections,I need to know how these are exactly happening inside the JVM.

I need to know more elaborate on that.Can anyone suggest me a good book or link on this.

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Well, there are many layers of internals. There's the bytecode your code compiles to; there's the JVM itself as an abstract virtual machine, and how it operates; and then there are the data structures of the actual JVM implementation. As far as I know, no books exist that talk about this third, innermost level for any JVM implementation. The knowledge wouldn't do you much good, anyway. But the second layer is well-documented, and that's what most people concern themselves with when learning about "Java internals." See, for example, the Java Virtual Machine Specification.

Now, that will teach about what instantiating an object means. But as to your second question about Collections: all the Collections classes are written in Java itself, and the source code comes with your JDK download (look for a file "" in your JDK installation directory). They're all very simple classes and can be read and understood by any intermediate level Java programmer. Give it a try.

[Jess in Action][AskingGoodQuestions]
Vid Srini
Ranch Hand

Joined: Aug 17, 2006
Posts: 35
Thanks Ernest for your info
I agree. Here's the link:
subject: Book on Java Internals
It's not a secret anymore!