Muhammad Hewedy
Muhammad Hewedy

Reputation: 30058

Does every execution of java command start a separate JVM?

Does every execution of java command start a separate JVM?

Upvotes: 6

Views: 513

Answers (2)

volley
volley

Reputation: 6711

Yes, you get a separate VM.

Some class resources can be shared (class data sharing). This is by default enabled, e.g. it's automatically used when possible.

Upvotes: 2

Andrius
Andrius

Reputation: 433

Yes, it does start a separate JVM.

Upvotes: 5

Related Questions