• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How JVM decide which Class Loader to be used to load class ?

 
Ranch Hand
Posts: 529
19
Eclipse IDE MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are two types of Class Loader 1. Primordial Class Loader and Class Loader Object. Primordial Class Loader used to load native class files and Class Loader Object is used to load Java's class files in custom way which are written in Java. In Class Loader Subsystem of JVM there are 3 Class Loaders
1. Boot Strap Class Loader
2.Extension Class Loader
3. Application Class Loader
How JVM decides which class loader should load which type of class files ?
 
Marshal
Posts: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you find anything useful in the link you got that information from? That might change from implementation to implementation.

That question is far too hard for this forum, so I shall move it.
 
Ganish Patil
Ranch Hand
Posts: 529
19
Eclipse IDE MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes this information is from a book named Inside Java Virtual Machine by Bill Venners but in the book (pdf format) Chapter 1 The Class Loader Architecture, first line of second paragraph it says A Java application can use two types of class loaders: a "primordial" class loader and class loader objects. and Same book online in html format says in same chapter A Java application can use two types of class loaders: a "bootstrap" class loader and user-defined class loaders. May be It has two names I don't know.
Here is link: The Class Loader Architecture

I want to learn how JVM works. Means I just want to know when I write a program how it is converted and loaded by JVM( In detail which loader loads what type of information), how memory in run time data memory area is managed(Java Memory types), how garbage collection mechanism works so can you please give me a link or suggest me a book so I can know that. I found a link of oracle is It good enough ?

Java Virtual Machine Specification Java SE8

and also a link or a book for learning Java language like classes, loops, servlet,RMI, Database etc. I also found a link please tell me is It good enough ?
Java Language Specification Java SE8

I know, I wrote too much may irks you but please need advice. Thank you in advance
 
Campbell Ritchie
Marshal
Posts: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When was the Venners book printed? I think it is quite old, and things might have changed since then. Have you tried searching? I found this, which applies to Java7.

You realise you do not actually need to know any of the things you are asking about?
 
Ganish Patil
Ranch Hand
Posts: 529
19
Eclipse IDE MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think It was printed in Sunnyvale, California August, 1997, It is written at the bottom of Preface page of book. I know I don't need to go in depth just wanted to know JVM working, not in too much detail.
 
Ganish Patil
Ranch Hand
Posts: 529
19
Eclipse IDE MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes actually It's not necessary to know what happens in JVM when I've vast concepts of Java to learn to build an application. I should rather focus on those concepts. Thank you for guidance.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic