Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Class Loader question

  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    114
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Class Loader question

    We know that Bootstrap loader loads all java related classes and system loader loads other user classes. Static classes get loaded when JVM starts. So all other non static classes get loaded in to JVM when they are referenced by other class? If not how they are loaded?


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Class Loader question

    So all other non static classes get loaded in to JVM when they are referenced by other class?
    Yes, they are in bytecodes for JVM and as soon as they are referenced, JVM loads them and make use of them.
    If anyone else has the complete knowledge of cycle, kindly post it here. I told what i knew and in my knowledge.

  3. #3
    Member
    Join Date
    Dec 2011
    Posts
    50
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: Class Loader question

    Hi, I think reading JVM/Java lang spec is the right way to find the correct answer.

Similar Threads

  1. Question on String class
    By TP-Oreilly in forum Java Theory & Questions
    Replies: 8
    Last Post: September 25th, 2011, 08:12 PM
  2. Noob question: Why .class?
    By Shaybay92 in forum Java Theory & Questions
    Replies: 10
    Last Post: August 22nd, 2011, 04:56 AM
  3. Replies: 6
    Last Post: July 18th, 2011, 08:48 AM
  4. [SOLVED] Class loader , InputStream-AudioStream (method) , returns an AudioStream Objet
    By chronoz13 in forum File I/O & Other I/O Streams
    Replies: 14
    Last Post: July 9th, 2011, 11:14 AM
  5. .class to .exe question
    By james137 in forum Java Theory & Questions
    Replies: 1
    Last Post: November 3rd, 2009, 09:18 PM