jignesh soni wrote:
In what situation shall I opt to use javaw and what is the advantage of using javaw over java ?
I've explained it twice now. I think the only way you'll understand is to try it yourself. Set up your machine to run jars by double-clicking to use java.exe, then change it to use javaw.exe. You should see the obvious difference: with java.exe, a console window appears, but with javaw.exe, it does not.