This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i am working in one company.my pl told me that i have to write a function that should return a ResultSet without getting a connection.He told me to write method that will accept a sql string and will return ResultSet but i dont have to use connection or statement object.The method is like that
I think the person was talking about a disconnected/cached resultset. You still need to get a connection, but you can close it before processing the result. Take a look at this JavaWorld article for more details.