-
JVM search...? (4 messages)
- Posted by: Ramalingeswara Rao K V
- Posted on: November 16 2006 07:01 EST
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 cThreaded Messages (4)
- Re: JVM search...? by Farzad Kohantorabi on November 16 2006 22:34 EST
- Answer to this question by Pavel Sumarokov on June 21 2008 04:43 EDT
- Re: JVM search...? by arijit dey on November 17 2006 07:16 EST
- Another platform is required by Noe Samuhel on June 15 2011 10:15 EDT
-
Re: JVM search...?[ Go to top ]
- Posted by: Farzad Kohantorabi
- Posted on: November 16 2006 22:34 EST
- in response to Ramalingeswara Rao K V
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- -
Answer to this question[ Go to top ]
- Posted by: Pavel Sumarokov
- Posted on: June 21 2008 04:43 EDT
- in response to Farzad Kohantorabi
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. -
Re: JVM search...?[ Go to top ]
- Posted by: arijit dey
- Posted on: November 17 2006 07:16 EST
- in response to Ramalingeswara Rao K V
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/ -
Another platform is required[ Go to top ]
- Posted by: Noe Samuhel
- Posted on: June 15 2011 10:15 EDT
- in response to arijit dey
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.