Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

java.util.UUID.randomUUID unique across JVM

807588Feb 10 2009 — edited Feb 10 2009
I want to have to generate unique id across mutliple JVM. I was wondering if this method was guaranty that ?

In other words, if I start 2 applications A and B, can I be sure that this method called from A application will never generate the same id in the application B ?

Otherwise, is their another way to get this id without using a database, just byte code ?

Thanhk you !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2009
Added on Feb 10 2009
3 comments
1,281 views