Home » JAVA Programming » Java Basic » Question
  1. What does System.getProperty(“variable”) return?
    1. Null
    2. Runtime error
    3. Value stored in variable
    4. Compilation error
    5. None of these
Correct Option: A

System.getProperty(“variable”) returns null value. Because, variable is not a property and if property does not exist, this method returns null value.



Your comments will be displayed only after manual approval.