Prepared Statements with JDBC

my following code does not work:

String query = "SELECT * FROM ?";
PreparedStatement ps = getVerbindung().prepareStatement(query);
ps.setString(1, "testtable");
ResultSet rs = ps.executeQuery(query);

I get the error: "unexpected token: ?"

Does anybody have an idea for the solution?

greets