InterviewSolution
Saved Bookmarks
| 1. |
Display Java Runtime Environment (JRE) version |
|
Answer» To GET the JRE version in Java, USE the predefined System.property() and include the key as “java.version” as shown below: public class EXAMPLE { public STATIC void main(String[] args) { System.out.println(System.getProperty("java.version")); } }The output displays the version: 1.8.0_141 |
|