JVM search...?


Performance and scalability: JVM search...?

  1. JVM search...? (4 messages)

    I have some confusion in case of below question. Any one..... pls give me brief explanation for this. List a. lib.jar b. the standard Java class libraries c. the 'current directory' d. c:\libs\ant.jar e. c:\libs\javacore.jar Referring to the list above, given the classpath "c:\libs\ant.jar;c:\libs\javacore.jar;.", in what order will the JVM search for classes? Choice 1 : b, d, and c Choice 2 : d, e, and c Choice 3 : a, d, e, and c Choice 4 : b, d, e, and c Choice 5 : b, a, d, e, and c

    Threaded Messages (4)

  2. Re: JVM search...?[ Go to top ]

    It depends on your class loaders. In JBoss the following rules apply: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases For Sun JDK standards take a look at: http://java.sun.com/docs/books/tutorial/ext/basics/load.html Farzad-
  3. According to documentation from java.sun.com choice 4 is correct. Let's discuss. Option a should be absent because there is no lib.jar file. d and e both exist in this order. So we have only 2 and 4 choices. But standard Java classes are always loaded before classes pointed in classpath. So we have to select choice 4. Only the notice here. Questions from http://www.brainbench.com are too complex sometimes. So I suggest to take free Java tests somewhere else to prepare before. For example http://www.intelrate.com provides nice and intelligent questions.
  4. Re: JVM search...?[ Go to top ]

    If you are trying to quize, then this site is probably not the correct platform. And if you really want to know how things are picked up then first you learn about the classloader hierarchy.If you specify something in the classpath , this comes under system classloader. Now rest you figure out. cheers, http://www.javaicillusion.blogspot.com/
  5. Another platform is required[ Go to top ]

    I also believe it's not the right platform, man, they should offer the whole information and they should offer it right. I believe that you should get a private cloud solution to track all the data down. That means you don't have to share resources anymore, you'll know exactly where your data is and you'll have complete administrative control over it.