As per the oracle documentation -
https://docs.oracle.com/javase/7/docs/api/java/sql/PreparedStatement.html#setBoolean(int,%20boolean)
setBoolean(int parameterIndex,boolean x)
method Sets the designated parameter to the given Java boolean value. The driver converts this to an SQL BIT or BOOLEAN value when it sends it to the database.
Here is there any way to know when the value will be stored as SQL BIT? and when will it store as BOOLEAN?
I am using oracle database, I have used this method passing the value as true(Java Boolean) and the value getting stored in database is 1 instead of Y. What could be the reason?