answersLogoWhite

0

How do you find a system number in a JAVA program?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

If by system number you mean the version number of the Java language on the client computer, you can useSystem.getProperty("java.version"); .

Or, if you want the Java virtual machine version number you can use System.getProperty("java.vm.version"); .

Finally, if you want the version number of the operating system, you can use System.getProperty("os.version"); .

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you find a system number in a JAVA program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you get a Java program to find the cube of a number?

Yes


How do you write a java program to find the square root of a number?

You can use the Math.sqrt() method.


How to write A Java program to print number of digits in a given number?

One way to do this is to convert the number to a String, then use the corresponding String method to find out the length of the String.


Where can one find Java system properties?

You can find Java system properties on the Oracle website. On here there is lots of information on the use of Java systems and the current must updated software.


How do you write a java program to find the ad joint of a matrix?

bgfygfrhjyuyhh


How do you find execution time of a program in java?

You can have the below line as the first and last line of the program and find out the difference in time taken to calculate the execution time. This will print the system time in the console which can be used to calculate execution time.System.currentTimeMillis();


How do you write a java program for finding multiligual languages?

You can use Java's built-in functions to write a code that will find multilingual languages.


Where can someone find information on the Java language for no such method error be found?

"No such method" is an error message that may appear when attempting to create a program with Java. Users who understand the Java programming language can find an answer on websites such as Stack Overflow and Crafting Java.


Jntu 2-2 oops through java answers?

write a java program to find factorial using recursive and non recursive


To find strong number in java?

sir , what is perfect no?


How do you get memory information in Java program?

You can use the following to find out the memory usage information for a Java Program:Runtime.getRuntime().maxMemory()Runtime.getRuntime().totalMemory()Runtime.getRuntime().freeMemory()


How do you know if you have java?

The best way to find out if your Java is up to date is to visit the Java website. You can then check the latest verison number, and compare it to what is already on your computer. You check in your programs and files. You can also choose to update, and if you have the current version it won't do it.