Am creating a SQL Database for multiple users(Roughly 100 user), each records having nearly 15 fields in it.. In which the ID field is auto incremented...

Whenever a person Inserting a record to the database, it has to show "auto incremented ID" for that particular person, For this am using this code

```
PreparedStatement ppstmt = conn.prepareStatement(sql,PreparedStatement.RETURN_GENERATED_KEYS);
ppstmt.execute(sql,PreparedStatement.RETURN_GENERATED_KEYS);
ResultSet rs = ppstmt.getGeneratedKeys();
long key = 0;
if (rs != null && rs.next()) {
    key = rs.getLong(1);
}

```

As of now its working fine but **my doubt is when multiple users inserting the record at the same time, whether it will corresponding auto generated ID to each person..?**