Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7074811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:06:10+00:00 2026-05-28T06:06:10+00:00

I was curious about what all locations JVM looks for executing a program? I’m

  • 0
  • I was curious about what all locations JVM looks for executing a program? I’m more interested in understanding in what sequence and where does JVM look for class files, like does it look into java libs, extension libs, classpath any directory like the current directory from where the java is invoked? I’m more interested in JVM behaviour and not how class loader load class, which I know has parent delegation mechanism till root.

  • If a class is executed from directory where the compiled class is kept on file system and also in a jar file in the same directory, would JVM load both or just one and which one?

  • Say you have a thread unsafe Vector and if we compare it performance to ArrayList, which one would be better and why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:06:11+00:00Added an answer on May 28, 2026 at 6:06 am

    How classes are found.
    Answer is here:

    http://docs.oracle.com/javase/1.5.0/docs/tooldocs/findingclasses.html

    Answer for point 2:
    Order of finding classes is as follows:

    1. classes or packages in current directory.
    2. classes found from CLASSPATH environment variable. [overrides 1]
    3. classes found from -classpath command line option. [overrides 1,2]
    4. classes found from jar archives specified via -jar command line option [overrides 1,2,3]

    So if you use -jar option while running, classes come from jarfile.

    Only one class is loaded though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm curious about what I'm not understanding in this code snippet... Why does this
There are lots of IDEs for PHP development, but I'm curious about all the
Possible Duplicate: Why did we bother with line numbers at all? I'm curious about
I'm quite curious about this. In a broad way, how does one go about
Now this has no practical implications at all, but I am curious about this
I'm curious about the reason why all most payment gateway site use clear text
I've always been curious about this. Between the two code example which is more
I'm Curious about how all the ad mechanism works. Let's say I publish my
I'm curious about the possibility to alter href attributes of all generated links. Let's
Hello I made a SQL test and dubious/curious about one question: In which sequence

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.