Yes, systemProperty values can include numbers and booleans, not just limited to strings. However, when retrieving systemProperty values in Java, they are always of type String, so you need to parse them to their correct datatype. For example, to parse a systemProperty value to an integer in Java, you can use the Integer.parseInt() method, and to parse it to a boolean, you can use Boolean.parseBoolean() method.
Asked: 2021-09-27 11:00:00 +0000
Seen: 8 times
Last updated: Feb 02 '23