Home »
MCQs »
Java MCQs
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?
- System.getProperties("java.vm.name")
- System.vmName
- Sytem.getVmName
- 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.