Bill Babbitt wrote:Thank you for your help. As for SQL Injection Attacks, this is not a web-based application and is only meant for local networks. That said, I am certain using prepared statements is likely a good practice.
Thank you for clarifying the quoting. I have struggled with what, where, and how to format a statement correctly for the JDBC to convert to something PostgreSQL will recognize. PostgreSQL seems unnecessarily complex, but the licensing is what I need for this application. Is there any post/site/book that clarifies the quoting?
Campbell Ritchie wrote:Unfortunately, that is what cert exams test.
Rob Spoor wrote:
German Gonzalez-Morris wrote:Maven dependencies declaration order does not impact the Java classloader (it is indeterministic).
It does if there are multiple versions of the same JAR. If dependency X has a dependency on BC version A, and dependency Y has a dependency on BC version B, then the order of declaring X and Y will change which BC version is used.
Jiri, we've had a similar (or possibly the same) issue 3 weeks ago: Issues with bouncycastle upgrade. Maybe you can find something useful in there.
Campbell Ritchie wrote:The cert exams, as Jeanne has said, don't so much test your ability to write good code as your ability to navigate bad code.
Lloyd Hatch wrote:If I can re-direct the discussion a bit, would someone mind telling me when an anonymous class would be useful? Back in my original question I missed it because I didn't recognize that the question was declaring an anonymous class, and I see that now, and I've been looking up anonymous classes. What I don't get still is why? What is the use case for them?
Let me know if this should be a separate thread.
Stephan van Hulst wrote:
Tim Holloway wrote:"new" is a unary operator and thus new Host().new Spirit() makes no more sense than a. + b would.
The Java designers seem to disagree. The following is the correct syntax for creating an instance of an inner class when your current lexical scope is outside of the enclosing class:
Tim Cooke wrote:Get yourself a half decent IDE such as Eclipse or IntelliJ and you'll never write another getter or equals method again either without the overhead and risk of a third party library.
Mike Simmons wrote:
Well yes, but the problem here is that I still have to read those auto-generated methods, and update them when new fields are added. This can lead to errors. I definitely prefer to have those methods built in by default.