Question
*****For beginner learning java Create a Java program that displays information regarding the version of Java that you are running and related information. Example looks
*****For beginner learning java
Create a Java program that displays information regarding the version of
Java that you are running and related information.
Example looks something like this:
System.getProperty("java.version")
On my desktop, this call returns "1.8.0_151".
For this assignment, the program show four system properties:
"java.version", "java.runtime.version", "java.specification.version",
and "os.name".
The output should be four lines; each line must be labeled with the name
of the property followed by the value of the property. My program output
looks like this:
java.version: 1.8.0_151
java.runtime.version: 1.8.0_151-8u151-b12-1~deb9u1-b12
java.specification.version: 1.8
os.name: Linux
Your output will very likely differ.
Each property may occur only once in your program. This means that each
must be held on a variable which can be used in both the label and the
call to getProperty().
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started