Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*****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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

d. What language(s) did they speak?

Answered: 1 week ago