I am working on my project and now I am having doubts about SQL query; is it okay to put the whole query in the String or it is better practice to use StringBuilder even though the query is static (it doesn't contain any variable)
private void createTheExpectedData() throws SQLException {
String query = "SELECT products.productname, orderdetails.quantityordered, orderdetails.priceEach "
+ "FROM orderdetails "
+ "INNER JOIN products "
+ "ON orderdetails.productcode = products.productcode";
resultSet = db.testClassQuery(query);