For the method "getRequestDispatcher() " we have to give the arguement as the physical path (starts with context root /) for the method getnamedDispatcher()
its enough to give the servlet name(<servlet-name> in the web.xml) as the arguemnt(This is because you can dispatch ypur request to the servlet which has no public access that means the servlt may not have the <servlet-mapping> in the web.xml file)
in this case first the boolean value of the b1 will be concatinated to the empty string and then b2 and then b3, forming a string and that will be printed.
so the second statement won't give you compile time error. [ February 08, 2006: Message edited by: manogna edintipal ]
In the above code I expect the value being chaged in the methods m1 and m2 is local StringBuffres .but the result is different . can any one help me out where I am goig wrong..... [ February 04, 2006: Message edited by: manogna edintipal ]
each thread can maintain its own set of variables (Cache)
When you declare a variable as Volatile, what ever the updation to its value will be performed on the master instance not the local instance(Cache) of the Thread.