Which method in java is used to get the name of running java VM?

93. Which method in java is used to get the name of running java VM?

  1. System.getProperties("java.vm.name")
  2. System.vmName
  3. Sytem.getVmName
  4. System.getProperties("vm.name")

Answer: A) System.getProperties("java.vm.name")

Explanation:

The Java method System.getProperties("java.vm.name") is used to get the name of the running Java VM.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.