Originally posted by edi:
my problem is to pass a file(cripted) which resides in one server to another server.
I wanted to know which would to be the best way to pass it?
At the momment I am using a URL object that calls a servlet passing the Stream that contains the file.
I have tried to use two servlets(passing the stream to the response of the caller and taking it from the request of the other one, but I have got problems with the headers.
Mutable means Changeable ( StringBuffer )
ImMutable means Not Changeable ( String )
For every change that you made to a String will
lead to create a new memory space.
String test="hai"; // memory is allocated
test="hello"; //now memory of "hai" is left and mew memory for "hello" is created. This "hai" memory will be Garbage collected. But this will not happen in StringBuffer, the same memory will be used.