Hello guys,
I think everyone is aware of -server command line JVM parameter. Does it make any sense while running Java application as Server??
I read that it does some more optimizations, and because of that, some of your Java code can behave differently like
boolean flag=true;
while(flag) {
if(checkMethod()) {
flag=false;
}
}
[EDIT] this code will work fine(same) in both scenario 1. without -server and 2. with -server, Will update once again with proper testable code.
it will never come out of while loop..
We have just started a new project, should we start using -server for testing?
Are you using it?
& I wonder if it really make sense and it is really important, why official document/tutorials of server products like tomcat/jetty/geronimo etc. never use/show -server tag in code examples ????
Cheers