PreparedStatements and escaped text
I'm having a bit of a problem. It seems that the PreparedStatement.setString(int, String) method doesn't recognise escaped characters in text.
I was hoping to find some sort of other method in PreparedStatement that recognises the escaped characters. Maybe there is one in String but I can't see it either :o
I have a String containing 2 '\' characters in a row (e.g. "foo\\bar"). Obviously the first '\' escapes the second and with a normal Statement object this sort of String is recognised for what it is and the first '\' is removed (so "foo\bar" is inserted). Is there a way to be able to successfully pass that String through PreparedStatement.setString(int, String)?
I really don't want to have to go back to ordinary Statements.
Why we create the Dynamic Object in java ???
please anybody tell me about the full specification of that why we use this terminology in java..
even that we can create the object statically in c language ..and it is more memory using than dynamic created objects ....
Please Specify the answers ..